Record Class MatrixSelectionRule.AllRule<F>
java.lang.Object
java.lang.Record
ch.tocco.nice2.rest.action.api.matrix.MatrixSelectionRule.AllRule<F>
- All Implemented Interfaces:
MatrixSelectionRule<F>
- Enclosing interface:
MatrixSelectionRule<F>
public static record MatrixSelectionRule.AllRule<F>(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
Constructors -
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.booleanselected()Returns the value of theselectedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AllRule
Creates an instance of aAllRulerecord class.- Parameters:
selected- the value for theselectedrecord componentfilter- the value for thefilterrecord component
-
-
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. -
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
-