org.apache.hadoop.hive.ql.util.jdbm.helper
Class IntegerComparator
java.lang.Object
org.apache.hadoop.hive.ql.util.jdbm.helper.IntegerComparator
- All Implemented Interfaces:
- Serializable, Comparator
public final class IntegerComparator
- extends Object
- implements Comparator, Serializable
Comparator for Integer objects.
- Version:
- $Id: IntegerComparator.java,v 1.2 2002/05/31 06:33:20 boisvert Exp $
- 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(Object obj1,
Object obj2)
- Compare two objects.
- Specified by:
compare
in interface Comparator
- 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 © 2010 The Apache Software Foundation