Class NaturalOrderComparator<T extends java.lang.Comparable<T>>

  • All Implemented Interfaces:
    java.util.Comparator<T>

    @Deprecated
    public class NaturalOrderComparator<T extends java.lang.Comparable<T>>
    extends java.lang.Object
    implements java.util.Comparator<T>
    Deprecated.
    unnecessary?
    Default Comparator for Comparable objects
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      int compare​(T o1, T o2)
      Deprecated.
       
      • 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
    • Method Detail

      • compare

        public int compare​(T o1,
                           T o2)
        Deprecated.
        Specified by:
        compare in interface java.util.Comparator<T extends java.lang.Comparable<T>>