public class ComparableComparator<T extends Comparable> extends Object implements Comparator<T>, Serializable
| Modifier and Type | Field and Description |
|---|---|
static Comparator |
INSTANCE |
| Constructor and Description |
|---|
ComparableComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Comparable one,
Comparable another) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic static final Comparator INSTANCE
public int compare(Comparable one, Comparable another)
compare in interface Comparator<T extends Comparable>Copyright © 2018 JBoss by Red Hat. All rights reserved.