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>
@Deprecated(since="6.1")
public class ComparableComparator<T extends Comparable<T>>
extends Object
implements Comparator<T>
Deprecated.
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 SummaryFieldsModifier and TypeFieldDescriptionstatic final ComparableComparatorDeprecated.A shared instance of this default comparator.
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparatorequals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
- 
Field Details- 
INSTANCEDeprecated.A shared instance of this default comparator.- See Also:
 
 
- 
- 
Constructor Details- 
ComparableComparatorpublic ComparableComparator()Deprecated.
 
- 
- 
Method Details- 
compareDeprecated.- Specified by:
- comparein interface- Comparator<T extends Comparable<T>>
 
 
- 
Comparator.naturalOrder()