posts - 46,  comments - 9,  views - 13万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
11 2020 档案
Java 使用Stream处理List对象去重
摘要:// 根据name去重 List<Person> unique = persons.stream().collect( Collectors.collectingAndThen( Collectors.toCollection(() -> new TreeSet<>(Comparator.compa 阅读全文
posted @ 2020-11-27 15:08 十七年蝉 阅读(5650) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示