public final class ByteArrayComparator
extends java.lang.Object
implements java.util.Comparator, 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(java.lang.Object obj1,
java.lang.Object obj2)
Compare two objects.
|
static int |
compareByteArray(byte[] thisKey,
byte[] otherKey)
Compare two byte arrays.
|
static final long serialVersionUID
public int compare(java.lang.Object obj1,
java.lang.Object obj2)
compare in interface java.util.Comparatorobj1 - First objectobj2 - Second objectpublic static int compareByteArray(byte[] thisKey,
byte[] otherKey)
Cees de Groot (C) 2000-2001. All rights reserved http://jdbm.sourceforge.net