Record Class ListView.Sort
java.lang.Object
java.lang.Record
com.trevlar.menukit.api.element.ListView.Sort
- Record Components:
option- the sort's place among thesort(...)calls, from 0reversed- whether the order runs backwards
The sort in use (7.3.0): which
ListView.Builder.sort(Component, Comparator) option, in the order they were
given, and whether it runs backwards. A record, for ListView.Builder.sortState(Supplier, Consumer).-
Constructor Summary
ConstructorsConstructorDescriptionSort(int option, boolean reversed) Creates an instance of aSortrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intoption()Returns the value of theoptionrecord component.booleanreversed()Returns the value of thereversedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Sort
-
-
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
option
-
reversed
-