Record Class MatrixSelectionRule.CellRule<F>
java.lang.Object
java.lang.Record
ch.tocco.nice2.rest.action.api.matrix.MatrixSelectionRule.CellRule<F>
- All Implemented Interfaces:
MatrixSelectionRule<F>
- Enclosing interface:
MatrixSelectionRule<F>
public static record MatrixSelectionRule.CellRule<F>(String rowKey, String columnKey, boolean selected)
extends Record
implements MatrixSelectionRule<F>
-
Nested Class Summary
Nested classes/interfaces inherited from interface MatrixSelectionRule
MatrixSelectionRule.AllRule<F>, MatrixSelectionRule.CellRule<F>, MatrixSelectionRule.ColumnRule<F>, MatrixSelectionRule.RowRule<F> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecolumnKeyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.rowKey()Returns the value of therowKeyrecord component.booleanselected()Returns the value of theselectedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CellRule
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
rowKey
Returns the value of therowKeyrecord component.- Returns:
- the value of the
rowKeyrecord component
-
columnKey
Returns the value of thecolumnKeyrecord component.- Returns:
- the value of the
columnKeyrecord component
-
selected
public boolean selected()Returns the value of theselectedrecord component.- Specified by:
selectedin interfaceMatrixSelectionRule<F>- Returns:
- the value of the
selectedrecord component
-