Comparators<T> extension
Provides functions for working with Comparators.
- on
-
- Comparator<
T>
- Comparator<
Methods
-
and(
Comparator< T> tiebreaker) → Comparator<T> -
Returns a Comparator that uses
tiebreaker
to break ties. -
reverse(
) → Comparator< T> -
Reverses the ordering of this
Comparator
.
Static Methods
-
by<
T> (Select< T, Comparable< select) → Comparator<Object> >T> -
Returns a Comparator that compares two
T
s using the values produced byselect
.