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
  • 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 a Tictactoe record class.
      Parameters:
      nullPlayer - the value for the nullPlayer record component
      myself - the value for the myself record component
      wrongGame - the value for the wrongGame record component
      wrongMove - the value for the wrongMove record component
      wrongByPlayer - the value for the wrongByPlayer record component
      symbol - the value for the symbol record component
      field - the value for the field record component
      currentMove - the value for the currentMove record component
      lastMove - the value for the lastMove record component
      formatMove - the value for the formatMove record component
      formatWin - the value for the formatWin record component
      formatDraw - the value for the formatDraw record component
      sender - the value for the sender record component
      receiver - the value for the receiver record component
  • Method Details

    • builder

    • toBuilder

    • withNullPlayer

      public Localization.Command.Tictactoe withNullPlayer(String nullPlayer)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withMyself

      public Localization.Command.Tictactoe withMyself(String myself)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withWrongGame

      public Localization.Command.Tictactoe withWrongGame(String wrongGame)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withWrongMove

      public Localization.Command.Tictactoe withWrongMove(String wrongMove)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withWrongByPlayer

      public Localization.Command.Tictactoe withWrongByPlayer(String wrongByPlayer)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withSymbol

      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withField

      public Localization.Command.Tictactoe withField(String field)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withCurrentMove

      public Localization.Command.Tictactoe withCurrentMove(String currentMove)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withLastMove

      public Localization.Command.Tictactoe withLastMove(String lastMove)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withFormatMove

      public Localization.Command.Tictactoe withFormatMove(String formatMove)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withFormatWin

      public Localization.Command.Tictactoe withFormatWin(String formatWin)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withFormatDraw

      public Localization.Command.Tictactoe withFormatDraw(String formatDraw)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withSender

      public Localization.Command.Tictactoe withSender(String sender)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withReceiver

      public Localization.Command.Tictactoe withReceiver(String receiver)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • nullPlayer

      public String nullPlayer()
      Returns the value of the nullPlayer record component.
      Returns:
      the value of the nullPlayer record component
    • myself

      public String myself()
      Returns the value of the myself record component.
      Returns:
      the value of the myself record component
    • wrongGame

      public String wrongGame()
      Returns the value of the wrongGame record component.
      Returns:
      the value of the wrongGame record component
    • wrongMove

      public String wrongMove()
      Returns the value of the wrongMove record component.
      Returns:
      the value of the wrongMove record component
    • wrongByPlayer

      public String wrongByPlayer()
      Returns the value of the wrongByPlayer record component.
      Returns:
      the value of the wrongByPlayer record component
    • symbol

      Returns the value of the symbol record component.
      Returns:
      the value of the symbol record component
    • field

      public String field()
      Returns the value of the field record component.
      Returns:
      the value of the field record component
    • currentMove

      public String currentMove()
      Returns the value of the currentMove record component.
      Returns:
      the value of the currentMove record component
    • lastMove

      public String lastMove()
      Returns the value of the lastMove record component.
      Returns:
      the value of the lastMove record component
    • formatMove

      public String formatMove()
      Returns the value of the formatMove record component.
      Returns:
      the value of the formatMove record component
    • formatWin

      public String formatWin()
      Returns the value of the formatWin record component.
      Returns:
      the value of the formatWin record component
    • formatDraw

      public String formatDraw()
      Returns the value of the formatDraw record component.
      Returns:
      the value of the formatDraw record component
    • sender

      public String sender()
      Returns the value of the sender record component.
      Returns:
      the value of the sender record component
    • receiver

      public String receiver()
      Returns the value of the receiver record component.
      Returns:
      the value of the receiver record component