public class ShortComparators
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static ShortComparator |
NATURAL_COMPARATOR |
static ShortComparator |
OPPOSITE_COMPARATOR |
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
.