Package com.onec.ui
Record Class ResolvedListView.Filter
java.lang.Object
java.lang.Record
com.onec.ui.ResolvedListView.Filter
- Enclosing class:
ResolvedListView
public static record ResolvedListView.Filter(String key, String label, String columnName, String type, List<String> options)
extends Record
A resolved list filter: a stable
key (the field name, the client's state key), the
label, the data columnName the query filters on (resolved + validated against
the entity's columns), the control type ("options", "multiOptions",
"contains", "startsWith" or "dateRange") and, for the (multi-)options
controls, its options.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecolumnNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.label()Returns the value of thelabelrecord component.options()Returns the value of theoptionsrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
Filter
Creates an instance of aFilterrecord class.- Parameters:
key- the value for thekeyrecord componentlabel- the value for thelabelrecord componentcolumnName- the value for thecolumnNamerecord componenttype- the value for thetyperecord componentoptions- the value for theoptionsrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
columnName
Returns the value of thecolumnNamerecord component.- Returns:
- the value of the
columnNamerecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
options
Returns the value of theoptionsrecord component.- Returns:
- the value of the
optionsrecord component
-