List<String> ids = new ArrayList<>();
List<BudContentBillVo> duplicateList = billList.stream().filter(// 过滤去重
v -> {
boolean flag = !ids.contains(v.getInputGroupId());
ids.add(v.getInputGroupId());
return flag;
}
).collect(Collectors.toList());
lambad表达式过滤去重
猜你喜欢
转载自blog.csdn.net/weixin_38441551/article/details/85004983
今日推荐
周排行