java 8 group a collections by 2 property

Solutions on MaxInterview for java 8 group a collections by 2 property by the best coders in the world

showing results for - "java 8 group a collections by 2 property"
Dot
23 Oct 2020
1Map<String, Map<BlogPostType, List>> map = posts.stream()
2  .collect(groupingBy(BlogPost::getAuthor, groupingBy(BlogPost::getType)));
3