java8对List<Map>进行分组
List<Map> mapList = new ArrayList<>();Map<String,List<Map>> mapListGroup = mapList.stream().collect(Collectors.groupingBy(e->e.get("xxx").toString()));
·
List<Map> mapList = new ArrayList<>();
Map<String,List<Map>> mapListGroup = mapList.stream().
collect(Collectors.groupingBy(e->e.get("xxx").toString()));
更多推荐
所有评论(0)