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