(1) 对list类型进行内部操作,然后返回list对象
ListchildCommentVoList = (List ) commentVo.getChild(); childCommentVoList = childCommentVoList.stream().map(childCommentVo -> { String commentVoUserId = childCommentVo.getUserId(); childCommentVo.setDeleteBool(Objects.equals(currentUserId, commentVoUserId)); return setCommentVoByDeleteLogo(childCommentVo, content); }).collect(Collectors.toList());
(2) 获取list中的某个数值进行对比判断
if(roleCount>=1 || depts.parallelStream().anyMatch(r -> r != null && simpleName.startsWith(r.getSimpleName()))){
return true;
}
(3)



