3 ms·
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(c
by javafu2 13y ago
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)). ...
```