Single argument method comparing:
public static <T, U extends Comparable<? super U>> Comparator<T> comparing(
Function<? super T, ? extends U> keyExtractor)
Function<? super T, ? extends U>, , , .
Entry::getValue (Map.Entry<String, Integer> ) (Integer ). Function.
getValue , .
, - Map.Entry, Stream, apply() Function.
, :
Function<Map.Entry<Integer, String>, String> func = Map.Entry::getValue;
getValue() Map.Entry Function, Map.Entry ( getValue() ).