Java-去重

//去重
List<BudgetSchemeInfo> templates = this.list().stream().collect(
Collectors.collectingAndThen(
Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(BudgetSchemeInfo::getDepId))), ArrayList::new));

posted @ 2022-04-07 09:44  joyfulest  阅读(36)  评论(0)    收藏  举报