Top Description Classes
[default module]

Package org.apache.commons.collections4.comparators


This package contains implementations of the 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.

Class Summary

Modifier and TypeClass and Description
public class
BooleanComparator

A Comparator for Boolean objects that can sort either true or false first.

public class
ComparableComparator<
the type of objects compared by this comparator
E extends Comparable<? super E>
>

A Comparator that compares Comparable objects.

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 compare method.

public class
TransformingComparator<
the input type to the transformer
I
,
the output type from the transformer
O
>

Decorates another Comparator with transformation behavior.