jdbm.helper
Class IntegerComparator
java.lang.Object
jdbm.helper.IntegerComparator
- All Implemented Interfaces:
- Serializable, Comparator<Integer>
public final class IntegerComparator
- extends Object
- implements Comparator<Integer>, Serializable
Comparator for Integer objects.
- Author:
- Christof Dallermassl
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntegerComparator
public IntegerComparator()
compare
public int compare(Integer obj1,
Integer obj2)
- Compare two objects.
- Specified by:
compare in interface Comparator<Integer>
- 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.