@FunctionalInterface
public interface ByteComparator
extends java.util.Comparator<java.lang.Byte>
Comparator
; provides methods to compare two primitive types both as objects
and as primitive types.
Note that fastutil
provides a corresponding abstract class that
can be used to implement this interface just by specifying the type-specific
comparator.
Comparator
Modifier and Type | Method and Description |
---|---|
int |
compare(byte k1,
byte k2)
Compares its two primitive-type arguments for order.
|
default int |
compare(java.lang.Byte ok1,
java.lang.Byte ok2)
Deprecated.
Please use the corresponding type-specific method instead.
|
default ByteComparator |
reversed() |
default ByteComparator |
thenComparing(ByteComparator second)
Return a new comparator that first uses this comparator, then uses the second comparator
if this comparator compared the two elements as equal.
|
default java.util.Comparator<java.lang.Byte> |
thenComparing(java.util.Comparator<? super java.lang.Byte> second) |
int compare(byte k1, byte k2)
Comparator
default ByteComparator reversed()
reversed
in interface java.util.Comparator<java.lang.Byte>
@Deprecated default int compare(java.lang.Byte ok1, java.lang.Byte ok2)
compare
in interface java.util.Comparator<java.lang.Byte>
default ByteComparator thenComparing(ByteComparator second)
Comparator.thenComparing(Comparator)
default java.util.Comparator<java.lang.Byte> thenComparing(java.util.Comparator<? super java.lang.Byte> second)
thenComparing
in interface java.util.Comparator<java.lang.Byte>