应用场景 判断修改对象的唯一值是否重复
if(list.stream() .filter(item->item.getUserId() .equals("123456")) .findAny() .isPresent()) { //存在则代码块执行业务逻辑代码 }