list.stream.filter(s->s.getName().equals(name)).findAny().isPresent();
存在返回 true 否则 返回 false
posted on 2021-07-16 11:54 Jun-Wang 阅读(3743) 评论(0) 收藏 举报