kiwi.util
Interface Comparator
- All Known Implementing Classes:
- StringComparator, HashCodeComparator
- public interface Comparator
An interface describing a comparator--an object that determines the
relative order of two objects.
- Author:
- Mark Lindner, PING Software Group
Method Summary |
int |
compare(java.lang.Object a,
java.lang.Object b)
Compare two objects. |
compare
public int compare(java.lang.Object a,
java.lang.Object b)
- Compare two objects.
- Parameters:
a
- The first object.b
- The second object.- Returns:
- 0 if the objects are equal, -1 if a is less than
b, and 1 if a is greater than b.