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
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
compare
in interfaceComparator<T extends Comparable<T>>
-