Skip to content

Instantly share code, notes, and snippets.

@mudlee
Created May 30, 2017 19:15
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 mudlee/1c882fabb6fb7102869e1d0ec361fe96 to your computer and use it in GitHub Desktop.
Save mudlee/1c882fabb6fb7102869e1d0ec361fe96 to your computer and use it in GitHub Desktop.
Java 8 Lambdas
batchedEntities.values()
.stream()
.map(BatchedEntities::getEntities)
.collect(Collectors.toList())
.stream()
.flatMap(List::stream)
.collect(Collectors.toList());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment