11 2020 档案
Java 使用Stream处理List对象去重
摘要:// 根据name去重 List<Person> unique = persons.stream().collect( Collectors.collectingAndThen( Collectors.toCollection(() -> new TreeSet<>(Comparator.compa
阅读全文