流式编程获得对象集合中某个字段分组的集合

Map<String, List<AnchorOutNoticeDto>> groupedByManagementIdMap =
anchorOutNoticeDtoList.parallelStream()
.collect(Collectors.groupingBy(AnchorOutNoticeDto::getManagementId));
posted @ 2023-04-04 11:15  Joker-0927  阅读(15)  评论(0编辑  收藏  举报
// 侧边栏目录