//list 对象 交集差集
                List<Map> newList = list.stream().filter(one -> {
                    List<Boolean> result = hisList.stream().map(two -> one.toString().equals(two.toString())).collect(Collectors.toList());

                    if (result.indexOf(true) > -1){
                        //为flase 时  是差集    为true时是交集
                        return false;
                    }else{
                        return true;
                    }
                }).collect(Collectors.toList());

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-25
  • 2021-07-28
  • 2021-08-17
  • 2021-07-17
  • 2021-11-12
猜你喜欢
  • 2021-06-30
  • 2022-02-11
  • 2022-12-23
  • 2021-06-03
  • 2021-08-02
相关资源
相似解决方案