org.springframework.util.comparator |
Useful generic java.util.Comparator implementations,
such as an invertible comparator and a compound comparator.
|
Java Source File Name | Type | Comment |
BooleanComparator.java | Class | A Comparator for Boolean objects that can sort either true or false first. |
ComparableComparator.java | Class | Comparator that adapts Comparables to the Comparator interface. |
CompoundComparator.java | Class | A comparator that chains a sequence of one or more more Comparators. |
InvertibleComparator.java | Class | A decorator for a comparator, with an "ascending" flag denoting
whether comparison results should be treated in forward (standard
ascending) order or flipped for reverse (descending) order. |
NullSafeComparator.java | Class | A Comparator that will safely compare nulls to be lower or higher than
other objects. |