摘要: 查找allMatch,是否全部都满足指定的参数行为,返回值为布尔值,如: boolean allOver18 = students.stream().allMatch(student -> student.getAge() >= 18); noneMatch,是否不存在满足指定行为的元素,返回值为布 阅读全文
posted @ 2022-08-25 10:46 郭慕荣 阅读(402) 评论(0) 推荐(0) 编辑