Class NaturalComparator<T extends Comparable<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 Detail

      • INSTANCE

        public static final NaturalComparator INSTANCE
        NaturalComparator singleton.
    • Constructor Detail

      • NaturalComparator

        public NaturalComparator()