ArrayList<ParkTimeCategorySetting> collect = settingVos.stream()
.collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(ParkTimeCategorySetting::getCategoryName))), ArrayList::new));
java集合对象 根据对象中某一属性去重
最新推荐文章于 2024-07-23 20:07:32 发布