List<EmEventConfigPointExcelDto> listNew = list.stream()
.collect(Collectors.collectingAndThen(
Collectors.toCollection(() ->
new TreeSet<>(Comparator.comparing((o) -> o.getTaskType() + ";"
+ o.getArea() + ";"
+ o.getSceneName() + ";"
+ o.getPointPosition() + ";"
+ o.getLocation()))), ArrayList::new));
java list.stream 多条件去重(分组)
最新推荐文章于 2024-08-13 11:01:36 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)