List<PdVo> pdVos = pdVoListList.stream().collect(Collectors.collectingAndThen( Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(o -> o.getPiCode() + ";" + o.getDeveloperCode()))), ArrayList::new));// 去重
jdk1.8中list按对象多个属性去重
最新推荐文章于 2023-06-28 16:16:26 发布