Record Class MatrixSelectionRule.ColumnRule<F>
java.lang.Object
java.lang.Record
ch.tocco.nice2.rest.action.api.matrix.MatrixSelectionRule.ColumnRule<F>
- All Implemented Interfaces:
MatrixSelectionRule<F>
- Enclosing interface:
MatrixSelectionRule<F>
public static record MatrixSelectionRule.ColumnRule<F>(String key, boolean selected, @Nullable F filter)
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
ConstructorsConstructorDescriptionColumnRule(String key, boolean selected, @Nullable F filter) Creates an instance of aColumnRulerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@Nullable Ffilter()Returns the value of thefilterrecord component.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.booleanselected()Returns the value of theselectedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ColumnRule
-
-
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. -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
selected
public boolean selected()Returns the value of theselectedrecord component.- Specified by:
selectedin interfaceMatrixSelectionRule<F>- Returns:
- the value of the
selectedrecord component
-
filter
Returns the value of thefilterrecord component.- Returns:
- the value of the
filterrecord component
-