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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionblank()Returns the value of theblankrecord component.builder()final booleanIndicates whether some other object is "equal to" this one.first()Returns the value of thefirstrecord component.Returns the value of thefirstRemoverecord component.firstWin()Returns the value of thefirstWinrecord component.final inthashCode()Returns a hash code value for this object.second()Returns the value of thesecondrecord component.Returns the value of thesecondRemoverecord component.Returns the value of thesecondWinrecord component.final StringtoString()Returns a string representation of this record class.withFirstRemove(String firstRemove) withFirstWin(String firstWin) withSecond(String second) withSecondRemove(String secondRemove) withSecondWin(String secondWin)
-
Constructor Details
-
Symbol
public Symbol(String blank, String first, String firstRemove, String firstWin, String second, String secondRemove, String secondWin) Creates an instance of aSymbolrecord class.- Parameters:
blank- the value for theblankrecord componentfirst- the value for thefirstrecord componentfirstRemove- the value for thefirstRemoverecord componentfirstWin- the value for thefirstWinrecord componentsecond- the value for thesecondrecord componentsecondRemove- the value for thesecondRemoverecord componentsecondWin- the value for thesecondWinrecord component
-
-
Method Details
-
builder
-
toBuilder
-
withBlank
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withFirst
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withFirstRemove
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withFirstWin
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSecond
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSecondRemove
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSecondWin
- 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). -
blank
Returns the value of theblankrecord component.- Returns:
- the value of the
blankrecord component
-
first
Returns the value of thefirstrecord component.- Returns:
- the value of the
firstrecord component
-
firstRemove
Returns the value of thefirstRemoverecord component.- Returns:
- the value of the
firstRemoverecord component
-
firstWin
Returns the value of thefirstWinrecord component.- Returns:
- the value of the
firstWinrecord component
-
second
Returns the value of thesecondrecord component.- Returns:
- the value of the
secondrecord component
-
secondRemove
Returns the value of thesecondRemoverecord component.- Returns:
- the value of the
secondRemoverecord component
-
secondWin
Returns the value of thesecondWinrecord component.- Returns:
- the value of the
secondWinrecord component
-