Comparator interface.
You may also consider using
ComparatorUtils,
which is a single class that uses static methods to construct instances
of the classes in this package.
| Modifier and Type | Class and Description |
|---|---|
| public class | BooleanComparator
A |
| public class | ComparableComparator<
the type of objects compared by this comparator E extends ComparableA |
| public class | ComparatorChain<
the type of objects compared by this comparator E>A ComparatorChain is a Comparator that wraps one or more Comparators in sequence. |
| public class | FixedOrderComparator<
the type of objects compared by this comparator T>A Comparator which imposes a specific order on a specific set of Objects. |
| public class | NullComparator<
the type of objects compared by this comparator E>A Comparator that will compare nulls to be either lower or higher than other objects. |
| public class | ReverseComparator<
the type of objects compared by this comparator E>Reverses the order of another comparator by reversing the arguments
to its |
| public class | TransformingComparator<
the input type to the transformer I, the output type from the transformer O>Decorates another Comparator with transformation behavior. |