Skip to content

Instantly share code, notes, and snippets.

@warriorg
Created January 25, 2016 07:58
Show Gist options
  • Save warriorg/50ab8eb88e1d52f33d19 to your computer and use it in GitHub Desktop.
Save warriorg/50ab8eb88e1d52f33d19 to your computer and use it in GitHub Desktop.
java groupingBy
Map<String, List<Pojo>> map = pojos.stream().collect(Collectors.groupingBy(Pojo::getKey));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment