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, wait
equals
public ObjectBAComparator(Comparator comparator)
comparator
- Object comparator.public int compare(Object obj1, Object obj2)
compare
in interface Comparator
obj1
- First objectobj2
- Second objectpublic static int compareByteArray(byte[] thisKey, byte[] otherKey)
Copyright © 2003-2012 Apache Software Foundation. All Rights Reserved.