org.mmbase.util
Class IntegerCompare
java.lang.Object
org.mmbase.util.IntegerCompare
- All Implemented Interfaces:
- CompareInterface
Deprecated. Should implement java.util.Comparator, or should not exist, because this is java.lang.Integer's 'natural' order.
- public class IntegerCompare
- extends Object
- implements CompareInterface
Class to compare two strings, used by SortedVector.
- Version:
- $Id: IntegerCompare.java,v 1.6 2005/10/05 10:44:00 michiel Exp $
- Author:
- Rico Jansen
- See Also:
SortedVector,
CompareInterface
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntegerCompare
public IntegerCompare()
- Deprecated.
compare
public int compare(Object thisOne,
Object other)
- Deprecated.
- 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 build 1.8.1.20060716