我可以将 HashMap
最佳答案
我建议流式传输外部和内部 map ,然后分配给父引用 Map
Map<String,List<hMap<String,String>>> res = map.entrySet().stream()
.collect(Collectors.toMap(Map.Entry::getKey,
entry->entry.getValue().stream().map(HashMap::new).collect(Collectors.toList())));
关于java - 将内部 HashMap 类型强制转换为 Map,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62597258/