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
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final booleanIndicates whether some other object is "equal to" this one.flag()Returns the value of theflagrecord component.final inthashCode()Returns a hash code value for this object.mine()Returns the value of theminerecord component.number0()Returns the value of thenumber0record component.number1()Returns the value of thenumber1record component.number2()Returns the value of thenumber2record component.number3()Returns the value of thenumber3record component.number4()Returns the value of thenumber4record component.number5()Returns the value of thenumber5record component.number6()Returns the value of thenumber6record component.number7()Returns the value of thenumber7record component.number8()Returns the value of thenumber8record component.final StringtoString()Returns a string representation of this record class.unknown()Returns the value of theunknownrecord component.withNumber0(String number0) withNumber1(String number1) withNumber2(String number2) withNumber3(String number3) withNumber4(String number4) withNumber5(String number5) withNumber6(String number6) withNumber7(String number7) withNumber8(String number8) withUnknown(String unknown)
-
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 aCellrecord class.- Parameters:
unknown- the value for theunknownrecord componentflag- the value for theflagrecord componentmine- the value for theminerecord componentnumber0- the value for thenumber0record componentnumber1- the value for thenumber1record componentnumber2- the value for thenumber2record componentnumber3- the value for thenumber3record componentnumber4- the value for thenumber4record componentnumber5- the value for thenumber5record componentnumber6- the value for thenumber6record componentnumber7- the value for thenumber7record componentnumber8- the value for thenumber8record component
-
-
Method Details
-
builder
-
toBuilder
-
withUnknown
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withFlag
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withMine
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withNumber0
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withNumber1
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withNumber2
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withNumber3
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withNumber4
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withNumber5
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withNumber6
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withNumber7
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withNumber8
- 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). -
unknown
Returns the value of theunknownrecord component.- Returns:
- the value of the
unknownrecord component
-
flag
Returns the value of theflagrecord component.- Returns:
- the value of the
flagrecord component
-
mine
Returns the value of theminerecord component.- Returns:
- the value of the
minerecord component
-
number0
Returns the value of thenumber0record component.- Returns:
- the value of the
number0record component
-
number1
Returns the value of thenumber1record component.- Returns:
- the value of the
number1record component
-
number2
Returns the value of thenumber2record component.- Returns:
- the value of the
number2record component
-
number3
Returns the value of thenumber3record component.- Returns:
- the value of the
number3record component
-
number4
Returns the value of thenumber4record component.- Returns:
- the value of the
number4record component
-
number5
Returns the value of thenumber5record component.- Returns:
- the value of the
number5record component
-
number6
Returns the value of thenumber6record component.- Returns:
- the value of the
number6record component
-
number7
Returns the value of thenumber7record component.- Returns:
- the value of the
number7record component
-
number8
Returns the value of thenumber8record component.- Returns:
- the value of the
number8record component
-