Class Pair.ByFirstPairComparator<T1,​T2>

  • All Implemented Interfaces:
    Comparator<Pair<T1,​T2>>
    Enclosing class:
    Pair<T1,​T2>

    public static class Pair.ByFirstPairComparator<T1,​T2>
    extends Object
    implements Comparator<Pair<T1,​T2>>
    Compares a Pair to another Pair according to the first object of the pair only This function will work providing the first element of the Pair is comparable, otherwise will throw a ClassCastException.
    Author:
    jonathanberant
    • Constructor Detail

      • ByFirstPairComparator

        public ByFirstPairComparator()