Record Class FileStoreFactory.Message
java.lang.Object
java.lang.Record
org.applecommander.filestore.FileStoreFactory.Message
- Enclosing interface:
FileStoreFactory
public static record FileStoreFactory.Message(FileStoreFactory.Level level, String message)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionMessage(FileStoreFactory.Level level, String message) Creates an instance of aMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static FileStoreFactory.Messagefinal inthashCode()Returns a hash code value for this object.static FileStoreFactory.Messagelevel()Returns the value of thelevelrecord component.message()Returns the value of themessagerecord component.final StringtoString()Returns a string representation of this record class.static FileStoreFactory.Message
-
Constructor Details
-
Message
Creates an instance of aMessagerecord class.- Parameters:
level- the value for thelevelrecord componentmessage- the value for themessagerecord component
-
-
Method Details
-
info
-
warning
-
error
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
level
Returns the value of thelevelrecord component.- Returns:
- the value of the
levelrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-