public class HashCodeComparator<T> extends Object implements Comparator<T>
Constructor and Description |
---|
HashCodeComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(T o1,
T o2) |
static <T> HashCodeComparator<T> |
instance() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public int compare(T o1, T o2) throws NullPointerException
compare
in interface Comparator<T>
NullPointerException
public static <T> HashCodeComparator<T> instance()