org.mmbase.util
Class IntegerCompare

java.lang.Object
  |
  +--org.mmbase.util.IntegerCompare
All Implemented Interfaces:
CompareInterface

public class IntegerCompare
extends java.lang.Object
implements CompareInterface

Class to compare two strings, used by SortedVector.

Version:
$Id: IntegerCompare.java,v 1.3 2001/04/13 15:13:17 pierre Exp $
Author:
Rico Jansen
See Also:
SortedVector, CompareInterface

Constructor Summary
IntegerCompare()
           
 
Method Summary
 int compare(java.lang.Object thisone, java.lang.Object other)
          Make the comparison.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegerCompare

public IntegerCompare()
Method Detail

compare

public int compare(java.lang.Object thisone,
                   java.lang.Object other)
Make the comparison. The result is a negative value if the first object is 'smaller' than the second, a positive value if it is 'larger', and 0 if both objects are 'equal'.
Specified by:
compare in interface CompareInterface
Parameters:
thisOne - the first object to compare. should be a Integer.
other - the second object to compare. should be a Integer.
Returns:
the result of the comparison


MMBase 2001