org.mmbase.util
Class SortableCompare
java.lang.Object
org.mmbase.util.SortableCompare
- All Implemented Interfaces:
- CompareInterface
Deprecated. Use java.util.Comparator
- public class SortableCompare
- extends Object
- implements CompareInterface
Class to compare two objects, used by SortedVector.
This one is to sort objects supporting the Sortable interface
- Version:
- $Id: SortableCompare.java,v 1.9 2005/10/05 12:42:56 michiel Exp $
- Author:
- Rico Jansen
- See Also:
Sortable,
SortedVector,
CompareInterface
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SortableCompare
public SortableCompare()
- 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 Comparable.other - the second object to compare. should be a Comparable.
- Returns:
- the result of the comparison
MMBase build 1.8.1.20060716