Package org.apache.camel.support
Class OrderedComparator
java.lang.Object
org.apache.camel.support.OrderedComparator
- All Implemented Interfaces:
Comparator<Object>
A comparator to sort
Ordered
-
Constructor Summary
ConstructorsConstructorDescriptionFavor using the static instanceget()
OrderedComparator
(boolean reverse) Favor using the static instancegetReverse()
-
Method Summary
Modifier and TypeMethodDescriptionint
static OrderedComparator
get()
Gets the comparator that sorts a..zstatic OrderedComparator
Gets the comparator that sorts z..a (reverse)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
OrderedComparator
public OrderedComparator()Favor using the static instanceget()
-
OrderedComparator
public OrderedComparator(boolean reverse) Favor using the static instancegetReverse()
-
-
Method Details
-
get
Gets the comparator that sorts a..z -
getReverse
Gets the comparator that sorts z..a (reverse) -
compare
- Specified by:
compare
in interfaceComparator<Object>
-