Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
final Map<Employee.Sex, List<Employee>> employeesOverThirtyBySex =
.collect(groupingBy(Employee::getSex, filtering(employee -> employee.getAge() > 30, toList())));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.