|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jutil.java.collections.ExtendedComparator | +--org.jutil.java.collections.ComparableComparator
Trivial Comparator that uses the Comparable interface of objects to compare.
Constructor Summary | |
ComparableComparator()
|
Method Summary | |
int |
compare(java.lang.Object o1,
java.lang.Object o2)
public behavior pre o1 instanceof Comparable; post \result == ((Comparable)o1).compareTo(o2); See superclass. |
Methods inherited from class org.jutil.java.collections.ExtendedComparator |
ensureExtended, greater, max, min, notGreater, notSmaller, smaller |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
equals |
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 |