Class NaturalComparator<T extends Comparable<T>>

java.lang.Object
com.oracle.coherence.common.base.NaturalComparator<T>
All Implemented Interfaces:
Comparator<T>

public class NaturalComparator<T extends Comparable<T>> extends Object implements Comparator<T>
NaturalComparator is a comparator which simply delegates to a Comparable object's compare implementation.
Author:
mf 2014.08.28
  • Field Details

    • INSTANCE

      public static final NaturalComparator INSTANCE
      NaturalComparator singleton.
  • Constructor Details

    • NaturalComparator

      public NaturalComparator()
  • Method Details