public final class OrderedComparator extends Object implements Comparator<Object>
Ordered
Constructor and Description |
---|
OrderedComparator()
Favor using the static instance
get() |
OrderedComparator(boolean reverse)
Favor using the static instance
getReverse() |
Modifier and Type | Method and Description |
---|---|
int |
compare(Object o1,
Object o2) |
static OrderedComparator |
get()
Gets the comparator that sorts a..z
|
static OrderedComparator |
getReverse()
Gets the comparator that sorts z..a (reverse)
|
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 OrderedComparator()
get()
public OrderedComparator(boolean reverse)
getReverse()
public static OrderedComparator get()
public static OrderedComparator getReverse()
Apache Camel