Java org.apache.commons.collections ComparatorUtils fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.collections ComparatorUtils fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.collections ComparatorUtils.

The text is from its open source code.

Field

ComparatorNATURAL_COMPARATOR
Comparator for natural sort order.

Method

ComparatorbooleanComparator(boolean trueFirst)
Gets a Comparator that can sort Boolean objects.
ComparatorchainedComparator(Comparator comparator1, Comparator comparator2)
Gets a comparator that compares using two Comparator s.
ComparatorchainedComparator(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.
ComparatorchainedComparator(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.
Objectmax(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.
Objectmin(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.
ComparatornaturalComparator()
Gets a comparator that uses the natural order of the objects.
ComparatornullHighComparator(Comparator comparator)
Gets a Comparator that controls the comparison of null values.
ComparatornullLowComparator(Comparator comparator)
Gets a Comparator that controls the comparison of null values.
ComparatorreversedComparator(Comparator comparator)
Gets a comparator that reverses the order of the given comparator.