ewe.util
Class StandardComparer
java.lang.Object
ewe.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.
|
Method Summary |
int |
compare(Object one,
Object two)
This should compare the two objects and return:
0 = the objects are equal. |
StandardComparer
public StandardComparer()
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