Skip to content

Instantly share code, notes, and snippets.

@iyengarajay
Last active May 20, 2016 10:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iyengarajay/b6803f27d72e40ac98bdfa7851a767c8 to your computer and use it in GitHub Desktop.
Save iyengarajay/b6803f27d72e40ac98bdfa7851a767c8 to your computer and use it in GitHub Desktop.
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