public class ByteComparators
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static ByteComparator |
NATURAL_COMPARATOR
A type-specific comparator mimicking the natural order.
|
static ByteComparator |
OPPOSITE_COMPARATOR
A type-specific comparator mimicking the opposite of the natural order.
|
Modifier and Type | Method and Description |
---|---|
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
.