public class DefaultComparator<E> extends Object implements Comparator<E>
Constructor and Description |
---|
DefaultComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(E a,
E b)
Compares two elements.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals
public int compare(E a, E b) throws ClassCastException
compare
in interface Comparator<E>
ClassCastException