Record Class Localization.ListTypeMessage
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Localization.ListTypeMessage
- Enclosing class:
Localization
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsConstructorDescriptionListTypeMessage(String header, String line, String lineNotActive, String footer) Creates an instance of aListTypeMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final booleanIndicates whether some other object is "equal to" this one.footer()Returns the value of thefooterrecord component.final inthashCode()Returns a hash code value for this object.header()Returns the value of theheaderrecord component.line()Returns the value of thelinerecord component.Returns the value of thelineNotActiverecord component.final StringtoString()Returns a string representation of this record class.withFooter(String footer) withHeader(String header) withLineNotActive(String lineNotActive)
-
Constructor Details
-
ListTypeMessage
Creates an instance of aListTypeMessagerecord class.- Parameters:
header- the value for theheaderrecord componentline- the value for thelinerecord componentlineNotActive- the value for thelineNotActiverecord componentfooter- the value for thefooterrecord component
-
-
Method Details
-
builder
-
toBuilder
-
withHeader
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withLine
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withLineNotActive
- 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). -
header
Returns the value of theheaderrecord component.- Returns:
- the value of the
headerrecord component
-
line
Returns the value of thelinerecord component.- Returns:
- the value of the
linerecord component
-
lineNotActive
Returns the value of thelineNotActiverecord component.- Returns:
- the value of the
lineNotActiverecord component
-