|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--xxl.comparators.ComparableComparator
The ComparableComparator uses the compareTo()-function of a given Comparable-Object to compare two elements. This means that Objects that implement the Comparable-interface can are wrapped by a ComparableComparator to be a Comparator.
| Field Summary | |
static ComparableComparator |
PROTOTYPE
Prototype-object of ComparableComparator. |
| Constructor Summary | |
ComparableComparator()
|
|
| Method Summary | |
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Compares its two arguments for order. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public static final ComparableComparator PROTOTYPE
| Constructor Detail |
public ComparableComparator()
| Method Detail |
public int compare(java.lang.Object o1,
java.lang.Object o2)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||