Novell exteNd
Director 5.2 API

com.sssw.fw.util
Class EboIntegerComparator

java.lang.Object
 |
 +--com.sssw.fw.util.EboIntegerComparator
All Implemented Interfaces:
EbiComparator

public class EboIntegerComparator
extends Object
implements EbiComparator

This class is an implementation of the com.sssw.fw.api.EbiComparator interface. It assumes that the objects being compared are java.lang.Integer's.

See Also:
EboQSort

Fields inherited from interface com.sssw.fw.api.EbiComparator
EQUIVALENT, IN_ORDER, REVERSE_ORDER
 
Constructor Summary
EboIntegerComparator()
           
 
Method Summary
 int compare(Object o1, Object o2)
          Determine the comparative ranking of two objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EboIntegerComparator

public EboIntegerComparator()
Method Detail

compare

public int compare(Object o1,
                   Object o2)
Determine the comparative ranking of two objects. Answer:
Note:This method assumes that the supplied objects are Integer's.
Specified by:
compare in interface EbiComparator
Parameters:
o1 - the first object to compare
o2 - the second object to compare
Returns:
the resulting ranking of the two objects

Novell exteNd
Director 5.2 API