Novell exteNd
Director 5.2 API

com.sssw.fw.util
Class EboComparator

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

public class EboComparator
extends Object
implements EbiComparator

This class is the default implementation of the com.sssw.fw.api.EbiComparator interface. See also com.sssw.fw.util.EboQSort.


Fields inherited from interface com.sssw.fw.api.EbiComparator
EQUIVALENT, IN_ORDER, REVERSE_ORDER
 
Constructor Summary
EboComparator()
           
 
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

EboComparator

public EboComparator()
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 Strings.
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