Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
private List<Person> getPeopleWithFilter(List<Person> persons, Predicate<Person> personFilter)
{
return persons.stream()
.filter(personFilter)
.collect(Collectors.toList());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment