Map<Object, Long> a1Map = groupStoreVisiList.stream().filter(map->map.getA1() != null)//这里需要加个判断,该字段不能为null
.collect(Collectors.groupingBy(p -> p.getA1(),Collectors.counting()));
2023-09-29 23:06:40
Map<Object, Long> a1Map = groupStoreVisiList.stream().filter(map->map.getA1() != null)//这里需要加个判断,该字段不能为null
.collect(Collectors.groupingBy(p -> p.getA1(),Collectors.counting()));
下一篇:堆排序