Package su.onno.ui
Record Class ResolvedListView.GroupColumn
java.lang.Object
java.lang.Record
su.onno.ui.ResolvedListView.GroupColumn
- Enclosing class:
ResolvedListView
public static record ResolvedListView.GroupColumn(String columnName, String label, boolean date)
extends Record
One groupable column: the data
columnName the GROUP BY runs on, its picker
label, and whether it is a date/time column (date) — a date column offers a
day/month/year granularity and buckets rows by period instead of exact value.-
Constructor Summary
ConstructorsConstructorDescriptionGroupColumn(String columnName, String label, boolean date) Creates an instance of aGroupColumnrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecolumnNamerecord component.booleandate()Returns the value of thedaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.label()Returns the value of thelabelrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GroupColumn
Creates an instance of aGroupColumnrecord class.- Parameters:
columnName- the value for thecolumnNamerecord componentlabel- the value for thelabelrecord componentdate- the value for thedaterecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
columnName
Returns the value of thecolumnNamerecord component.- Returns:
- the value of the
columnNamerecord component
-
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
date
public boolean date()Returns the value of thedaterecord component.- Returns:
- the value of the
daterecord component
-