List detailAlllist= list1.stream().filter(obj1 ->
!list2.stream().map(Obj1::getxxxx).collect(Collectors.toList()).contains(obj1.getxxx())
).collect(Collectors.toList());
两个list去除相同的
最新推荐文章于 2024-11-12 18:03:49 发布
List detailAlllist= list1.stream().filter(obj1 ->
!list2.stream().map(Obj1::getxxxx).collect(Collectors.toList()).contains(obj1.getxxx())
).collect(Collectors.toList());