Record Class Localization.Command.Tictactoe
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Localization.Command.Tictactoe
- All Implemented Interfaces:
LocalizationSetting
- Enclosing class:
Localization.Command
public static record Localization.Command.Tictactoe(String nullPlayer, String myself, String wrongGame, String wrongMove, String wrongByPlayer, Localization.Command.Tictactoe.Symbol symbol, String field, String currentMove, String lastMove, String formatMove, String formatWin, String formatDraw, String sender, String receiver)
extends Record
implements LocalizationSetting
- Since:
- 1.7.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic class -
Constructor Summary
ConstructorsConstructorDescriptionTictactoe(String nullPlayer, String myself, String wrongGame, String wrongMove, String wrongByPlayer, Localization.Command.Tictactoe.Symbol symbol, String field, String currentMove, String lastMove, String formatMove, String formatWin, String formatDraw, String sender, String receiver) Creates an instance of aTictactoerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Returns the value of thecurrentMoverecord component.final booleanIndicates whether some other object is "equal to" this one.field()Returns the value of thefieldrecord component.Returns the value of theformatDrawrecord component.Returns the value of theformatMoverecord component.Returns the value of theformatWinrecord component.final inthashCode()Returns a hash code value for this object.lastMove()Returns the value of thelastMoverecord component.myself()Returns the value of themyselfrecord component.Returns the value of thenullPlayerrecord component.receiver()Returns the value of thereceiverrecord component.sender()Returns the value of thesenderrecord component.symbol()Returns the value of thesymbolrecord component.final StringtoString()Returns a string representation of this record class.withCurrentMove(String currentMove) withFormatDraw(String formatDraw) withFormatMove(String formatMove) withFormatWin(String formatWin) withLastMove(String lastMove) withMyself(String myself) withNullPlayer(String nullPlayer) withReceiver(String receiver) withSender(String sender) withWrongByPlayer(String wrongByPlayer) withWrongGame(String wrongGame) withWrongMove(String wrongMove) Returns the value of thewrongByPlayerrecord component.Returns the value of thewrongGamerecord component.Returns the value of thewrongMoverecord component.
-
Constructor Details
-
Tictactoe
public Tictactoe(String nullPlayer, String myself, String wrongGame, String wrongMove, String wrongByPlayer, Localization.Command.Tictactoe.Symbol symbol, String field, String currentMove, String lastMove, String formatMove, String formatWin, String formatDraw, String sender, String receiver) Creates an instance of aTictactoerecord class.- Parameters:
nullPlayer- the value for thenullPlayerrecord componentmyself- the value for themyselfrecord componentwrongGame- the value for thewrongGamerecord componentwrongMove- the value for thewrongMoverecord componentwrongByPlayer- the value for thewrongByPlayerrecord componentsymbol- the value for thesymbolrecord componentfield- the value for thefieldrecord componentcurrentMove- the value for thecurrentMoverecord componentlastMove- the value for thelastMoverecord componentformatMove- the value for theformatMoverecord componentformatWin- the value for theformatWinrecord componentformatDraw- the value for theformatDrawrecord 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).
-
withMyself
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withWrongGame
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withWrongMove
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withWrongByPlayer
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSymbol
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withField
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withCurrentMove
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withLastMove
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withFormatMove
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withFormatWin
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withFormatDraw
- 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
-
myself
Returns the value of themyselfrecord component.- Returns:
- the value of the
myselfrecord component
-
wrongGame
Returns the value of thewrongGamerecord component.- Returns:
- the value of the
wrongGamerecord component
-
wrongMove
Returns the value of thewrongMoverecord component.- Returns:
- the value of the
wrongMoverecord component
-
wrongByPlayer
Returns the value of thewrongByPlayerrecord component.- Returns:
- the value of the
wrongByPlayerrecord component
-
symbol
Returns the value of thesymbolrecord component.- Returns:
- the value of the
symbolrecord component
-
field
Returns the value of thefieldrecord component.- Returns:
- the value of the
fieldrecord component
-
currentMove
Returns the value of thecurrentMoverecord component.- Returns:
- the value of the
currentMoverecord component
-
lastMove
Returns the value of thelastMoverecord component.- Returns:
- the value of the
lastMoverecord component
-
formatMove
Returns the value of theformatMoverecord component.- Returns:
- the value of the
formatMoverecord component
-
formatWin
Returns the value of theformatWinrecord component.- Returns:
- the value of the
formatWinrecord component
-
formatDraw
Returns the value of theformatDrawrecord component.- Returns:
- the value of the
formatDrawrecord 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
-