Created
May 15, 2018 21:54
-
-
Save motlin/1afe510ee3e07c21688d142010f8bb21 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Map<Color, Set<Person>> map = | |
people.stream().collect(Collectors.groupingBy( | |
Person::getFavoriteColor, | |
Collectors.toSet())); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment