Package com.oracle.coherence.common.base
Class NaturalComparator<T extends Comparable<T>>
java.lang.Object
com.oracle.coherence.common.base.NaturalComparator<T>
- All Implemented Interfaces:
 Comparator<T>
NaturalComparator is a comparator which simply delegates to a Comparable object's compare implementation.
- Author:
 - mf 2014.08.28
 
- 
Field Summary
Fields - 
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
NaturalComparator singleton. 
 - 
 - 
Constructor Details
- 
NaturalComparator
public NaturalComparator() 
 - 
 - 
Method Details
- 
compare
- Specified by:
 comparein interfaceComparator<T extends Comparable<T>>
 
 -