public class ComparableComparator<T extends java.lang.Comparable<T>>
extends java.lang.Object
implements java.util.Comparator<T>
Comparable
Modifier and Type | Field and Description |
---|---|
static ComparableComparator |
INSTANCE
A shared instance of this default comparator
|
Constructor and Description |
---|
ComparableComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(T o1,
T o2) |
public static final ComparableComparator INSTANCE
Comparators.comparable()