Class ComparableComparator<T extends Comparable<T>>
java.lang.Object
org.springframework.util.comparator.ComparableComparator<T>
- Type Parameters:
 T- the type of comparable objects that may be compared by this comparator
- All Implemented Interfaces:
 Comparator<T>
Comparator that adapts Comparables to the Comparator interface.
 Mainly for internal use in other Comparators, when supposed
 to work on Comparables.
- Since:
 - 1.2.2
 - Author:
 - Keith Donald
 - See Also:
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ComparableComparatorA shared instance of this default comparator. - 
Constructor Summary
Constructors - 
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong 
- 
Field Details
- 
INSTANCE
A shared instance of this default comparator.- See Also:
 
 
 - 
 - 
Constructor Details
- 
ComparableComparator
public ComparableComparator() 
 - 
 - 
Method Details
- 
compare
- Specified by:
 comparein interfaceComparator<T extends Comparable<T>>
 
 -