public final class ShortComparators extends Object
| Modifier and Type | Field and Description |
|---|---|
static ShortComparator |
NATURAL_COMPARATOR |
static ShortComparator |
OPPOSITE_COMPARATOR |
| Modifier and Type | Method and Description |
|---|---|
static ShortComparator |
asShortComparator(Comparator<? super Short> c)
Returns a type-specific comparator that is equivalent to the given comparator.
|
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.public static ShortComparator asShortComparator(Comparator<? super Short> c)
c - a comparator, or null.c.