public final 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 |
asShortComparator(java.util.Comparator<? super java.lang.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(java.util.Comparator<? super java.lang.Short> c)
c
- a comparator, or null
.c
.