| java.lang.Object jdbm.helper.ObjectBAComparator
ObjectBAComparator | final public class ObjectBAComparator implements Comparator,Serializable(Code) | | Comparator for objects which have been serialized into byte arrays.
In effect, it wraps another Comparator which compares object and provides
transparent deserialization from byte array to object.
author: Alex Boisvert version: $Id: ObjectBAComparator.java,v 1.1 2002/05/31 06:33:20 boisvert Exp $ |
Constructor Summary | |
public | ObjectBAComparator(Comparator comparator) Construct an ObjectByteArrayComparator which wraps an Object Comparator. |
serialVersionUID | final static long serialVersionUID(Code) | | Version id for serialization.
|
ObjectBAComparator | public ObjectBAComparator(Comparator comparator)(Code) | | Construct an ObjectByteArrayComparator which wraps an Object Comparator.
Parameters: comparator - Object comparator. |
compare | public int compare(Object obj1, Object obj2)(Code) | | Compare two objects.
Parameters: obj1 - First object Parameters: obj2 - Second object 1 if obj1 > obj2, 0 if obj1 == obj2, -1 if obj1 < obj2 |
compareByteArray | public static int compareByteArray(byte[] thisKey, byte[] otherKey)(Code) | | Compare two byte arrays.
|
|
|