org.springframework.util.comparator

Class ComparableComparator<T extends Comparable<T>>

  • All Implemented Interfaces:
    Comparator<T>

    public class ComparableComparator<T extends Comparable<T>>
    extends Object
    implements Comparator<T>
    Comparator that adapts Comparables to the Comparator interface. Mainly for internal use in other Comparators, when supposed to work on Comparables.
    Since:
    1.2.2
    Author:
    Keith Donald
    See Also:
    Comparable
    • Constructor Detail

      • ComparableComparator

        public ComparableComparator()