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

List<String> managementIds = anchorOutNoticeDtoList.parallelStream()
.map(AnchorOutNoticeDto::getManagementId)
.distinct()
.collect(Collectors.toList());
posted @   Joker-0927  阅读(26)  评论(0编辑  收藏  举报
努力加载评论中...
// 侧边栏目录
点击右上角即可分享
微信分享提示