Map分组configMap = configList.parallelStream().collect( Collectors.groupingBy(HitRuleConfig::getAppId, // 先根据appId分组 Collectors.collectingAndThen( Collectors.reducing(( c1, c2) -> c1.getVersionSort() > c2.getVersionSort() ? c1 : c2), Optional::get)));
List
Map
.collect(Collectors.groupingBy(Matchs::getMatchDate));
List orderNoList=list.stream().map(Order::getOrderNo).collect(Collectors.toList());
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)