This package contains implementations of the {@link java.util.Comparator Comparator} interface.
See: Description
Class Summary | |
---|---|
BooleanComparator | A {@link Comparator} for {@link Boolean} objects that can sort either true or false first. |
ComparableComparator | A {@link Comparator Comparator} that compares {@link Comparable Comparable} objects. |
ComparatorChain |
A ComparatorChain is a Comparator that wraps one or more Comparators in sequence. |
FixedOrderComparator | A Comparator which imposes a specific order on a specific set of Objects. |
NullComparator | A Comparator that will compare nulls to be either lower or higher than other objects. |
ReverseComparator | Reverses the order of another comparator by reversing the arguments to its {@link #compare(Object, Object) compare} method. |
TransformingComparator | Decorates another Comparator with transformation behavior. |
This package contains implementations of the {@link java.util.Comparator Comparator} interface.
You may also consider using {@link org.apache.commons.collections.ComparatorUtils ComparatorUtils}, which is a single class that uses static methods to construct instances of the classes in this package.