ewe.util
Class StandardComparer

java.lang.Object
  extended byewe.util.StandardComparer
All Implemented Interfaces:
Comparer

public class StandardComparer
extends Object
implements Comparer

This compares two objects that are either Strings or implement the Comparable interface.


Constructor Summary
StandardComparer()
           
 
Method Summary
 int compare(Object one, Object two)
          This should compare the two objects and return: 0 = the objects are equal.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, toString
 

Constructor Detail

StandardComparer

public StandardComparer()
Method Detail

compare

public int compare(Object one,
                   Object two)
Description copied from interface: Comparer
This should compare the two objects and return: 0 = the objects are equal. greater than 0 = one is greater than two. less than 0 = two is greater than one.

Specified by:
compare in interface Comparer