Created
July 5, 2017 02:05
-
-
Save rodrigooler/d2258425b3b5f9d22b40ea6c108fa555 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
final List<Movie> movies = Arrays.asList( | |
new Movie(1, "Exterminador do Futuro"), | |
new Movie(2, "Exterminador do Futuro 2"), | |
new Movie(3, "Exterminador do Futuro 3")); | |
final Map<String, List<Movie>> movies = movies.stream().collect(Collectors.groupingBy(m -> m.getTitle())); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment