public final class ByteArrayComparator extends Object implements Comparator<byte[]>, Serializable
Constructor and Description |
---|
ByteArrayComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(byte[] obj1,
byte[] obj2)
Compare two objects.
|
static int |
compareByteArray(byte[] thisKey,
byte[] otherKey)
Compare two byte arrays.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public int compare(byte[] obj1, byte[] obj2)
compare
in interface Comparator<byte[]>
obj1
- First objectobj2
- Second objectpublic static int compareByteArray(byte[] thisKey, byte[] otherKey)
Copyright © 2016. All rights reserved.