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, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public static final Comparator INSTANCE
public int compare(Comparable one, Comparable another)
compare
in interface Comparator<T extends Comparable>
Copyright © 2021 JBoss by Red Hat. All rights reserved.