Record Class Localization.Command.Minesweeper.Cell

java.lang.Object
java.lang.Record
net.flectone.pulse.config.Localization.Command.Minesweeper.Cell
Enclosing class:
Localization.Command.Minesweeper

public static record Localization.Command.Minesweeper.Cell(String unknown, String flag, String mine, String number0, String number1, String number2, String number3, String number4, String number5, String number6, String number7, String number8) extends Record
Since:
1.7.1
  • Constructor Details

    • Cell

      public Cell(String unknown, String flag, String mine, String number0, String number1, String number2, String number3, String number4, String number5, String number6, String number7, String number8)
      Creates an instance of a Cell record class.
      Parameters:
      unknown - the value for the unknown record component
      flag - the value for the flag record component
      mine - the value for the mine record component
      number0 - the value for the number0 record component
      number1 - the value for the number1 record component
      number2 - the value for the number2 record component
      number3 - the value for the number3 record component
      number4 - the value for the number4 record component
      number5 - the value for the number5 record component
      number6 - the value for the number6 record component
      number7 - the value for the number7 record component
      number8 - the value for the number8 record component
  • Method Details

    • builder

    • toBuilder

    • withUnknown

      public Localization.Command.Minesweeper.Cell withUnknown(String unknown)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withFlag

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

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

      public Localization.Command.Minesweeper.Cell withNumber0(String number0)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withNumber1

      public Localization.Command.Minesweeper.Cell withNumber1(String number1)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withNumber2

      public Localization.Command.Minesweeper.Cell withNumber2(String number2)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withNumber3

      public Localization.Command.Minesweeper.Cell withNumber3(String number3)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withNumber4

      public Localization.Command.Minesweeper.Cell withNumber4(String number4)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withNumber5

      public Localization.Command.Minesweeper.Cell withNumber5(String number5)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withNumber6

      public Localization.Command.Minesweeper.Cell withNumber6(String number6)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withNumber7

      public Localization.Command.Minesweeper.Cell withNumber7(String number7)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withNumber8

      public Localization.Command.Minesweeper.Cell withNumber8(String number8)
      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.
    • unknown

      public String unknown()
      Returns the value of the unknown record component.
      Returns:
      the value of the unknown record component
    • flag

      public String flag()
      Returns the value of the flag record component.
      Returns:
      the value of the flag record component
    • mine

      public String mine()
      Returns the value of the mine record component.
      Returns:
      the value of the mine record component
    • number0

      public String number0()
      Returns the value of the number0 record component.
      Returns:
      the value of the number0 record component
    • number1

      public String number1()
      Returns the value of the number1 record component.
      Returns:
      the value of the number1 record component
    • number2

      public String number2()
      Returns the value of the number2 record component.
      Returns:
      the value of the number2 record component
    • number3

      public String number3()
      Returns the value of the number3 record component.
      Returns:
      the value of the number3 record component
    • number4

      public String number4()
      Returns the value of the number4 record component.
      Returns:
      the value of the number4 record component
    • number5

      public String number5()
      Returns the value of the number5 record component.
      Returns:
      the value of the number5 record component
    • number6

      public String number6()
      Returns the value of the number6 record component.
      Returns:
      the value of the number6 record component
    • number7

      public String number7()
      Returns the value of the number7 record component.
      Returns:
      the value of the number7 record component
    • number8

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