java8中的Collectors.groupingBy用法
作者:互联网
java8二次收集备忘:
Map<Integer,String> mapAnchor = anchors.stream().collect(Collectors.groupingBy(LiveAnchorInfo::getRoomId, Collectors.mapping(LiveAnchorInfo::getName, Collectors.joining(","))));
原文:
https://blog.csdn.net/u014231523/article/details/102535902
标签:LiveAnchorInfo,u014231523,groupingBy,Collectors,备忘,java8 来源: https://www.cnblogs.com/xiaoliu66007/p/15827496.html