public final class ObjectBAComparator extends Object implements Comparator, Serializable
| Constructor and Description |
|---|
ObjectBAComparator(Comparator comparator)
Construct an ObjectByteArrayComparator which wraps an Object Comparator.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Object obj1,
Object 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, waitequalspublic ObjectBAComparator(Comparator comparator)
comparator - Object comparator.public int compare(Object obj1, Object obj2)
compare in interface Comparatorobj1 - First objectobj2 - Second objectpublic static int compareByteArray(byte[] thisKey,
byte[] otherKey)
Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.