Record Class Localization.Command.Mail
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Localization.Command.Mail
- All Implemented Interfaces:
LocalizationSetting
- Enclosing class:
Localization.Command
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()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 thenullPlayerrecord component.Returns the value of theonlinePlayerrecord component.receiver()Returns the value of thereceiverrecord component.sender()Returns the value of thesenderrecord component.final StringtoString()Returns a string representation of this record class.withNullPlayer(String nullPlayer) withOnlinePlayer(String onlinePlayer) withReceiver(String receiver) withSender(String sender)
-
Constructor Details
-
Mail
Creates an instance of aMailrecord class.- Parameters:
nullPlayer- the value for thenullPlayerrecord componentonlinePlayer- the value for theonlinePlayerrecord componentsender- the value for thesenderrecord componentreceiver- the value for thereceiverrecord component
-
-
Method Details
-
builder
-
toBuilder
-
withNullPlayer
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withOnlinePlayer
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSender
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withReceiver
- 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
-
onlinePlayer
Returns the value of theonlinePlayerrecord component.- Returns:
- the value of the
onlinePlayerrecord component
-
sender
Returns the value of thesenderrecord component.- Returns:
- the value of the
senderrecord component
-
receiver
Returns the value of thereceiverrecord component.- Returns:
- the value of the
receiverrecord component
-