public class ObjectComparators
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.Comparator |
NATURAL_COMPARATOR |
static java.util.Comparator |
OPPOSITE_COMPARATOR |
Modifier and Type | Method and Description |
---|---|
static <K> java.util.Comparator<K> |
oppositeComparator(java.util.Comparator<K> c)
Returns a comparator representing the opposite order of the given comparator.
|