3 ms·
> Default methods provide a more object-oriented solution for this problem: people.sort(comparing(Person::getLastName)); Yay function pointers.
by pacala 14y ago
> Default methods provide a more object-oriented solution for this problem: people.sort(comparing(Person::getLastName));
Yay function pointers.
- rforax 14y agoand default methods are traits but it's a secret.