Class Comparators.BySecondOfPairComparator<T>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Comparator<? super T> comparator  
      private static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private BySecondOfPairComparator​(java.util.Comparator<? super T> comparator)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(Pair<?,​T> p1, Pair<?,​T> p2)  
      • 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
    • Field Detail

      • comparator

        private final java.util.Comparator<? super T> comparator
    • Constructor Detail

      • BySecondOfPairComparator

        private BySecondOfPairComparator​(java.util.Comparator<? super T> comparator)
    • Method Detail

      • compare

        public int compare​(Pair<?,​T> p1,
                           Pair<?,​T> p2)
        Specified by:
        compare in interface java.util.Comparator<T>