java8特性-list集合根据多个字段去重
摘要:
//按专业和年级去重,专业和年纪一样时表示重复对象 List<Class> distinctClass = classList.stream().collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSe 阅读全文
posted @ 2022-12-19 17:02 wjbk 阅读(1589) 评论(0) 推荐(0)
浙公网安备 33010602011771号