News for hackers. Stuff that matters.
Re:Streams in Java 8 by javafu2 on Monday February 10, 2014 @02:50AM (#7209683)
It already exists in the API. Your type Projection is a Function, and by is called comparing in interface Comparator.

so one can write: ``` contries.sorted(comparingInt(Country::getPopulation)). ... ```

There are no comments on this comment yet.