T - element typepublic class NaturalComparator<T>
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
int |
compare(T o1,
T o2) |
boolean |
equals(java.lang.Object that) |
int |
hashCode() |
static <T> NaturalComparator<T> |
INSTANCE() |
static <T> NaturalComparator<T> |
INSTANCE(java.lang.Class<T> c) |
public static <T> NaturalComparator<T> INSTANCE()
public static <T> NaturalComparator<T> INSTANCE(java.lang.Class<T> c)
public boolean equals(java.lang.Object that)
equals in interface java.util.Comparator<T>equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object