public class ShortComparators extends Object
Modifier and Type | Field and Description |
---|---|
static ShortComparator |
NATURAL_COMPARATOR
A type-specific comparator mimicking the natural order.
|
static ShortComparator |
OPPOSITE_COMPARATOR
A type-specific comparator mimicking the opposite of the natural order.
|
Modifier and Type | Method and Description |
---|---|
static ShortComparator |
oppositeComparator(ShortComparator c)
Returns a comparator representing the opposite order of the given comparator.
|
public static final ShortComparator NATURAL_COMPARATOR
public static final ShortComparator OPPOSITE_COMPARATOR
public static ShortComparator oppositeComparator(ShortComparator c)
c
- a comparator.c
.