stream判断是否存在元素并且返回boolean
https://www.runoob.com/java/java8-streams.html
demo
@Test
public void bbb() throws Exception {
List<Integer> warnIds = new ArrayList<Integer>();
warnIds.add(1);
warnIds.add(2);
warnIds.add(3);
warnIds.add(4);
List<Long> erros = new ArrayList<Long>();
erros.add(1l);
System.out.println("====List<Long>转List<Integer>===");
List<Integer> errosInteger = erros.stream().map(d -> Integer.parseInt(d.toString())).collect(Collectors.toList());
System.out.println("====List<Integer>取交集===");
List<Integer> collect1 = errosInteger.stream().filter(f -> errosInteger.contains(warnIds)).collect(Collectors.toList());
collect1.stream().forEach(System.