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 十七年蝉 阅读(5666) 评论(0) 推荐(1)