Readonly compareReverses the order of the current comparator.
Composes the current comparator with the given comparison function such that the latter is applied for every equal values of the former comparator.
Composes the current comparator with a comparator which compares the properties
selected by the given selector function for every equal values of the current
comparator.
Composes the current comparator with a comparator which compares the values
of the given key for every equal values of the current comparator.
Composes the current comparator with a comparator which compares the properties
selected by the given selector function for every equal values of the current
comparator in reverse (descending) order.
Composes the current comparator with a comparator which compares the values
of the given key for every equal values of the current comparator
in reverse (descending) order.
Composes the current comparator with the given comparison function such that the latter is applied for every equal values of the current comparator in reverse (descending) order.
Static naturalStatic naturalStatic nullsStatic nullsStatic reverse
A Comparator defines a compare function enriched with methods to compose multiple comparators in order to form complex comparison behavior. A compare function returns negative numbers if the first value is lower than the second value, positive numbers if the first value is larger than the second value and zero if both values are equal.