public static < T > SerializableComparator < Pair < ? , T > > bySecondOfPair ( Comparator < ? super T > comparator ) { return new BySecondOfPairComparator < T > ( comparator ) ; }
Creates a comparator for pairs by using an existing comparator that only compares the second element of the pair