Record Class Localization.Command.Rockpaperscissors
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Localization.Command.Rockpaperscissors
- All Implemented Interfaces:
LocalizationSetting
- Enclosing class:
Localization.Command
public static record Localization.Command.Rockpaperscissors(String nullPlayer, String nullGame, String wrongMove, String already, String myself, String sender, String receiver, String formatMove, String formatWin, String formatDraw, Map<String,String> strategies)
extends Record
implements LocalizationSetting
- Since:
- 1.7.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsConstructorDescriptionRockpaperscissors(String nullPlayer, String nullGame, String wrongMove, String already, String myself, String sender, String receiver, String formatMove, String formatWin, String formatDraw, Map<String, String> strategies) Creates an instance of aRockpaperscissorsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionalready()Returns the value of thealreadyrecord component.builder()final booleanIndicates whether some other object is "equal to" this one.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.myself()Returns the value of themyselfrecord component.nullGame()Returns the value of thenullGamerecord component.Returns the value of thenullPlayerrecord component.receiver()Returns the value of thereceiverrecord component.sender()Returns the value of thesenderrecord component.Returns the value of thestrategiesrecord component.final StringtoString()Returns a string representation of this record class.withAlready(String already) withFormatDraw(String formatDraw) withFormatMove(String formatMove) withFormatWin(String formatWin) withMyself(String myself) withNullGame(String nullGame) withNullPlayer(String nullPlayer) withReceiver(String receiver) withSender(String sender) withStrategies(Map<String, String> strategies) withWrongMove(String wrongMove) Returns the value of thewrongMoverecord component.
-
Constructor Details
-
Rockpaperscissors
public Rockpaperscissors(String nullPlayer, String nullGame, String wrongMove, String already, String myself, String sender, String receiver, String formatMove, String formatWin, String formatDraw, Map<String, String> strategies) Creates an instance of aRockpaperscissorsrecord class.- Parameters:
nullPlayer- the value for thenullPlayerrecord componentnullGame- the value for thenullGamerecord componentwrongMove- the value for thewrongMoverecord componentalready- the value for thealreadyrecord componentmyself- the value for themyselfrecord componentsender- the value for thesenderrecord componentreceiver- the value for thereceiverrecord componentformatMove- the value for theformatMoverecord componentformatWin- the value for theformatWinrecord componentformatDraw- the value for theformatDrawrecord componentstrategies- the value for thestrategiesrecord component
-
-
Method Details
-
builder
-
toBuilder
-
withNullPlayer
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withNullGame
- 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).
-
withAlready
- 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).
-
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).
-
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).
-
withStrategies
- 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
-
nullGame
Returns the value of thenullGamerecord component.- Returns:
- the value of the
nullGamerecord component
-
wrongMove
Returns the value of thewrongMoverecord component.- Returns:
- the value of the
wrongMoverecord component
-
already
Returns the value of thealreadyrecord component.- Returns:
- the value of the
alreadyrecord component
-
myself
Returns the value of themyselfrecord component.- Returns:
- the value of the
myselfrecord 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
-
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
-
strategies
-