JAVA使用Lambda表达式查找list集合中是否包含某值
for (String className : allClassName) {
if (!classDetailList.stream().filter(o -> ToolUtil.equals(o.getClassName(), className)).findFirst().isPresent()) {
classDetailList.add(new AftersaleStatisticDTO().setClassName(className));
} }