java 集合查找

时间:2021-06-02 13:19:18   收藏:0   阅读:0
 List<Obj> test= objList.stream().filter(s -> s.getLicence() != null && s.getLicence().equals(obj.getLicence())).collect(Collectors.<Obj>toList());
                       

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!