Record Class Localization.Command.Nickname
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Localization.Command.Nickname
- All Implemented Interfaces:
LocalizationSetting
- Enclosing class:
Localization.Command
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Returns the value of thedefaultNicknamerecord component.display()Returns the value of thedisplayrecord component.Returns the value of thedisplaySeerecord component.final booleanIndicates whether some other object is "equal to" this one.format()Returns the value of theformatrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thenullNicknamerecord component.Returns the value of thenullPlayerrecord component.final StringtoString()Returns a string representation of this record class.withDefaultNickname(String defaultNickname) withDisplay(String display) withDisplaySee(String displaySee) withFormat(String format) withNullNickname(String nullNickname) withNullPlayer(String nullPlayer)
-
Constructor Details
-
Nickname
public Nickname(String nullPlayer, String nullNickname, String defaultNickname, String display, String displaySee, String format) Creates an instance of aNicknamerecord class.- Parameters:
nullPlayer- the value for thenullPlayerrecord componentnullNickname- the value for thenullNicknamerecord componentdefaultNickname- the value for thedefaultNicknamerecord componentdisplay- the value for thedisplayrecord componentdisplaySee- the value for thedisplaySeerecord componentformat- the value for theformatrecord component
-
-
Method Details
-
builder
-
toBuilder
-
withNullPlayer
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withNullNickname
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withDefaultNickname
- 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).
-
withDisplaySee
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withFormat
- 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). -
nullPlayer
Returns the value of thenullPlayerrecord component.- Returns:
- the value of the
nullPlayerrecord component
-
nullNickname
Returns the value of thenullNicknamerecord component.- Returns:
- the value of the
nullNicknamerecord component
-
defaultNickname
Returns the value of thedefaultNicknamerecord component.- Returns:
- the value of the
defaultNicknamerecord component
-
display
Returns the value of thedisplayrecord component.- Returns:
- the value of the
displayrecord component
-
displaySee
Returns the value of thedisplaySeerecord component.- Returns:
- the value of the
displaySeerecord component
-
format
Returns the value of theformatrecord component.- Returns:
- the value of the
formatrecord component
-