摘要: Collectors.groupingBy根据一个或多个属性对集合中的项目进行分组: 按照项目分组: Map<String, List<Product>> prodMap= prodList.stream().collect(Collectors.groupingBy(Product::getCat 阅读全文
posted @ 2021-06-18 19:55 唯一520 阅读(3123) 评论(0) 推荐(0) 编辑