jdbm.helper
Class LongComparator
java.lang.Object
jdbm.helper.LongComparator
- All Implemented Interfaces:
- Serializable, Comparator<Long>
public final class LongComparator
- extends Object
- implements Comparator<Long>, Serializable
Comparator for java.lang.Long objects.
- Author:
- Alex Boisvert
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LongComparator
public LongComparator()
compare
public int compare(Long obj1,
Long obj2)
- Compare two objects.
- Specified by:
compare in interface Comparator<Long>
- Parameters:
obj1 - First objectobj2 - Second object
- Returns:
- a positive integer if obj1 > obj2, 0 if obj1 == obj2,
and a negative integer if obj1 < obj2
Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.