List<String> distinctDataList = proResultList.stream() .collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing( x -> (JSONObject.parseObject(x)).getLong("ID")))), ArrayList::new));
lamda指定JSON字段去重
最新推荐文章于 2023-06-21 17:21:29 发布