org.w3c.tools.sorter
Interface Comparer
- All Known Implementing Classes:
- SiRS
- public abstract interface Comparer
A comparer performs a comparison of
two objects. Comparable
seemed not very flexible to me...
Method Summary |
int |
compare(java.lang.Object handle,
java.lang.Object o1,
java.lang.Object o2)
Handle is used e.g. |
compare
public int compare(java.lang.Object handle,
java.lang.Object o1,
java.lang.Object o2)
- Handle is used e.g. to distinguish different types of sorting
or just passed as an additional parameter.
<0: o1 < o2
0: o1 = o2
>0: o1 > o2