Example usage for Java org.apache.commons.collections ComparatorUtils fields, constructors, methods, implement or subclass
The text is from its open source code.
Comparator | NATURAL_COMPARATOR Comparator for natural sort order. |
Comparator | booleanComparator(boolean trueFirst) Gets a Comparator that can sort Boolean objects. |
Comparator | chainedComparator(Comparator comparator1, Comparator comparator2) Gets a comparator that compares using two Comparator s. |
Comparator | chainedComparator(Comparator[] comparators) Gets a comparator that compares using an array of Comparator s, applied in sequence until one returns not equal or the array is exhausted. |
Comparator | chainedComparator(Collection comparators) Gets a comparator that compares using a collection of Comparator s, applied in (default iterator) sequence until one returns not equal or the collection is exhausted. |
Object | max(Object o1, Object o2, Comparator comparator) Returns the larger of the given objects according to the given comparator, returning the second object if the comparator returns equal. |
Object | min(Object o1, Object o2, Comparator comparator) Returns the smaller of the given objects according to the given comparator, returning the second object if the comparator returns equal. |
Comparator | naturalComparator() Gets a comparator that uses the natural order of the objects. |
Comparator | nullHighComparator(Comparator comparator) Gets a Comparator that controls the comparison of null values. |
Comparator | nullLowComparator(Comparator comparator) Gets a Comparator that controls the comparison of null values. |
Comparator | reversedComparator(Comparator comparator) Gets a comparator that reverses the order of the given comparator. |