public class ComparableComparator<T extends Comparable<T>> extends Object implements Comparator<T>
Comparable
Modifier and Type | Field and Description |
---|---|
static ComparableComparator |
INSTANCE |
Constructor and Description |
---|
ComparableComparator() |
public static final ComparableComparator INSTANCE
public int compare(T o1, T o2)
compare
in interface Comparator<T extends Comparable<T>>