filter过滤某个条件 对象集合 返回List
List result = list.stream().filter(examination -> examination.getLastScore() == 100).collect(Collectors.toList());
提取对象某个字段 返回List
List result = list.stream().map(a -> a.getLastScore()).collect(Collectors.toList());
提取对象某个字段 返回Set
Set uids = list.stream().map(exam -> exam.getUid()).collect(Collectors.toSet());
统计满足某个条件数据数量 返回Long
long result = list.stream().filter(examination -> examination.getLastScore() == 100).count();
统计不相同的数据数量 返回Long
Long num = list.stream().map(a -> a.getName()).distinct().count();
统计sum()
Double temp = list.stream().mapToDouble(a -> a.getLastScore()).sum();
根据某个字段分组 返回Map<?, List>
Map<Long, List> cdatePointMap = list.stream().collect
(Collectors.groupingBy(point -> point.getCdate().getTime(), Collectors.toList()));
根据字段 返回Map<?, ?>
Map<Integ