public final class ByteComparators extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ByteComparators.NaturalImplicitComparator
A type-specific comparator mimicking the natural order.
|
protected static class |
ByteComparators.OppositeComparator |
protected static class |
ByteComparators.OppositeImplicitComparator
A type-specific comparator mimicking the opposite of the natural order.
|
| Modifier and Type | Field and Description |
|---|---|
static ByteComparator |
NATURAL_COMPARATOR |
static ByteComparator |
OPPOSITE_COMPARATOR |
| Modifier and Type | Method and Description |
|---|---|
static ByteComparator |
asByteComparator(Comparator<? super 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(Comparator<? super Byte> c)
c - a comparator, or null.c.Copyright © 2020. All rights reserved.