T - the comparable typepublic class ComparableComparator<T extends Comparable<T>> extends Object implements Comparator<T>, Serializable
| Constructor and Description |
|---|
ComparableComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(T lhs,
T rhs) |
boolean |
equals(Object obj) |
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic int compare(T lhs, T rhs)
compare in interface Comparator<T extends Comparable<T>>public boolean equals(Object obj)
equals in interface Comparator<T extends Comparable<T>>equals in class ObjectCopyright © 2017. All rights reserved.