Class AlwaysEqualComparator<T>

  • Type Parameters:
    T - type of elements to be compared
    All Implemented Interfaces:
    Comparator<T>

    public class AlwaysEqualComparator<T>
    extends Object
    implements Comparator<T>
    A default implementation for a check on equality (that always holds)
    • Constructor Detail

      • AlwaysEqualComparator

        public AlwaysEqualComparator()
    • Method Detail

      • compare

        public int compare​(T arg0,
                           T arg1)
        Specified by:
        compare in interface Comparator<T>