public final class ByteComparators
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static ByteComparator |
NATURAL_COMPARATOR |
static ByteComparator |
OPPOSITE_COMPARATOR |
Modifier and Type | Method and Description |
---|---|
static ByteComparator |
asByteComparator(java.util.Comparator<? super java.lang.Byte> c)
Returns a type-specific comparator that is equivalent to the given comparator.
|
static ByteComparator |
oppositeComparator(ByteComparator c)
Returns a comparator representing the opposite order of the given comparator.
|
public static final ByteComparator NATURAL_COMPARATOR
public static final ByteComparator OPPOSITE_COMPARATOR
public static ByteComparator oppositeComparator(ByteComparator c)
c
- a comparator.c
.public static ByteComparator asByteComparator(java.util.Comparator<? super java.lang.Byte> c)
c
- a comparator, or null
.c
.