org.apache.directory.shared.ldap.util
Class BigIntegerComparator
java.lang.Object
org.apache.directory.shared.ldap.util.BigIntegerComparator
- All Implemented Interfaces:
- Serializable, Comparator
public class BigIntegerComparator
- extends Object
- implements Comparator, Serializable
Compares BigInteger keys and values within a table.
- Version:
- $Revision: 434411 $
- Author:
- Apache Directory Project
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final BigIntegerComparator INSTANCE
- A instance of this comparator
BigIntegerComparator
public BigIntegerComparator()
compare
public int compare(Object an_obj1,
Object an_obj2)
- Compare two objects.
- Specified by:
compare
in interface Comparator
- Parameters:
an_obj1
- First objectan_obj2
- Second object
- Returns:
- 1 if obj1 > obj2, 0 if obj1 == obj2, -1 if obj1 < obj2
Copyright © 2004-2012. All Rights Reserved.