org.apache.directory.shared.ldap.util
Class BigIntegerComparator

java.lang.Object
  extended byorg.apache.directory.shared.ldap.util.BigIntegerComparator
All Implemented Interfaces:
java.util.Comparator, java.io.Serializable

public class BigIntegerComparator
extends java.lang.Object
implements java.util.Comparator, java.io.Serializable

Compares BigInteger keys and values within a table.

Version:
$Revision: 379008 $
Author:
Alex Karasulu, $Author: akarasulu $
See Also:
Serialized Form

Field Summary
static BigIntegerComparator INSTANCE
          A instance of this comparator
 
Constructor Summary
BigIntegerComparator()
           
 
Method Summary
 int compare(java.lang.Object an_obj1, java.lang.Object an_obj2)
          Compare two objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Field Detail

INSTANCE

public static final BigIntegerComparator INSTANCE
A instance of this comparator

Constructor Detail

BigIntegerComparator

public BigIntegerComparator()
Method Detail

compare

public int compare(java.lang.Object an_obj1,
                   java.lang.Object an_obj2)
Compare two objects.

Specified by:
compare in interface java.util.Comparator
Parameters:
an_obj1 - First object
an_obj2 - Second object
Returns:
1 if obj1 > obj2, 0 if obj1 == obj2, -1 if obj1 < obj2


Copyright © 2003-2006 . All Rights Reserved.