Record Class Localization.Message.Format.Names
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Localization.Message.Format.Names
- All Implemented Interfaces:
LocalizationSetting
- Enclosing class:
Localization.Message.Format
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()console()Returns the value of theconsolerecord component.constant()Returns the value of theconstantrecord component.display()Returns the value of thedisplayrecord component.entity()Returns the value of theentityrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinvisiblerecord component.final StringtoString()Returns a string representation of this record class.unknown()Returns the value of theunknownrecord component.withConsole(String console) withConstant(List<String> constant) withDisplay(List<String> display) withEntity(String entity) withInvisible(String invisible) withUnknown(String unknown)
-
Constructor Details
-
Names
public Names(List<String> constant, List<String> display, String entity, String unknown, String console, String invisible) Creates an instance of aNamesrecord class.- Parameters:
constant- the value for theconstantrecord componentdisplay- the value for thedisplayrecord componententity- the value for theentityrecord componentunknown- the value for theunknownrecord componentconsole- the value for theconsolerecord componentinvisible- the value for theinvisiblerecord component
-
-
Method Details
-
builder
-
toBuilder
-
withConstant
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withDisplay
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withEntity
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withUnknown
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withConsole
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withInvisible
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
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). -
constant
-
display
-
entity
Returns the value of theentityrecord component.- Returns:
- the value of the
entityrecord component
-
unknown
Returns the value of theunknownrecord component.- Returns:
- the value of the
unknownrecord component
-
console
Returns the value of theconsolerecord component.- Returns:
- the value of the
consolerecord component
-
invisible
Returns the value of theinvisiblerecord component.- Returns:
- the value of the
invisiblerecord component
-