Record Class Localization.Command.Tictactoe.Symbol

java.lang.Object
java.lang.Record
net.flectone.pulse.config.Localization.Command.Tictactoe.Symbol
Enclosing class:
Localization.Command.Tictactoe

public static record Localization.Command.Tictactoe.Symbol(String blank, String first, String firstRemove, String firstWin, String second, String secondRemove, String secondWin) extends Record
Since:
1.7.1
  • Constructor Details

    • Symbol

      public Symbol(String blank, String first, String firstRemove, String firstWin, String second, String secondRemove, String secondWin)
      Creates an instance of a Symbol record class.
      Parameters:
      blank - the value for the blank record component
      first - the value for the first record component
      firstRemove - the value for the firstRemove record component
      firstWin - the value for the firstWin record component
      second - the value for the second record component
      secondRemove - the value for the secondRemove record component
      secondWin - the value for the secondWin record component
  • Method Details

    • builder

    • toBuilder

    • withBlank

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

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

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

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

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

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

      public Localization.Command.Tictactoe.Symbol withSecondWin(String secondWin)
      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.
    • blank

      public String blank()
      Returns the value of the blank record component.
      Returns:
      the value of the blank record component
    • first

      public String first()
      Returns the value of the first record component.
      Returns:
      the value of the first record component
    • firstRemove

      public String firstRemove()
      Returns the value of the firstRemove record component.
      Returns:
      the value of the firstRemove record component
    • firstWin

      public String firstWin()
      Returns the value of the firstWin record component.
      Returns:
      the value of the firstWin record component
    • second

      public String second()
      Returns the value of the second record component.
      Returns:
      the value of the second record component
    • secondRemove

      public String secondRemove()
      Returns the value of the secondRemove record component.
      Returns:
      the value of the secondRemove record component
    • secondWin

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