jdk1.8新特性之--------------------- filter使用


      获取dtos集合中total=500.00的salesman的集合。
List<String> collect = dtos.stream().filter(d -> d.getTotal().equals("500.00")).map(ReportDTO::getSalesman).collect(Collectors.toList());
原文地址:https://www.cnblogs.com/St123456/p/13602363.html