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

List<String> managementIds = anchorOutNoticeDtoList.parallelStream()
.map(AnchorOutNoticeDto::getManagementId)
.distinct()
.collect(Collectors.toList());
posted @ 2023-04-04 08:37  Joker-0927  阅读(19)  评论(0编辑  收藏  举报
// 侧边栏目录