Record Class Localization.Command.Online
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Localization.Command.Online
- 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.Returns the value of theformatCurrentrecord component.Returns the value of theformatFirstrecord component.Returns the value of theformatLastrecord component.Returns the value of theformatTotalrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thenullPlayerrecord component.final StringtoString()Returns a string representation of this record class.withFormatCurrent(String formatCurrent) withFormatFirst(String formatFirst) withFormatLast(String formatLast) withFormatTotal(String formatTotal) withNullPlayer(String nullPlayer)
-
Constructor Details
-
Online
public Online(String nullPlayer, String formatCurrent, String formatFirst, String formatLast, String formatTotal) Creates an instance of aOnlinerecord class.- Parameters:
nullPlayer- the value for thenullPlayerrecord componentformatCurrent- the value for theformatCurrentrecord componentformatFirst- the value for theformatFirstrecord componentformatLast- the value for theformatLastrecord componentformatTotal- the value for theformatTotalrecord component
-
-
Method Details
-
builder
-
toBuilder
-
withNullPlayer
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withFormatCurrent
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withFormatFirst
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withFormatLast
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withFormatTotal
- 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
-
formatCurrent
Returns the value of theformatCurrentrecord component.- Returns:
- the value of the
formatCurrentrecord component
-
formatFirst
Returns the value of theformatFirstrecord component.- Returns:
- the value of the
formatFirstrecord component
-
formatLast
Returns the value of theformatLastrecord component.- Returns:
- the value of the
formatLastrecord component
-
formatTotal
Returns the value of theformatTotalrecord component.- Returns:
- the value of the
formatTotalrecord component
-