public final class ByteArrayComparator
extends java.lang.Object
implements java.util.Comparator<byte[]>, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
(package private) static long |
serialVersionUID
Version id for serialization.
|
| 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.
|
static final long serialVersionUID
public int compare(byte[] obj1,
byte[] obj2)
compare in interface java.util.Comparator<byte[]>obj1 - First objectobj2 - Second objectpublic static int compareByteArray(byte[] thisKey,
byte[] otherKey)