|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.datastructures.DefaultComparator<E>
public class DefaultComparator<E>
Comparator based on the natural ordering
Constructor Summary | |
---|---|
DefaultComparator()
|
Method Summary | |
---|---|
int |
compare(E a,
E b)
Compares two given elements |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
equals |
Constructor Detail |
---|
public DefaultComparator()
Method Detail |
---|
public int compare(E a, E b) throws java.lang.ClassCastException
compare
in interface java.util.Comparator<E>
java.lang.ClassCastException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |