Stream.collec GNOOB 2023-06-05 40 阅读1分钟 map.entrySet().stream().collect(Collectors.toMap(Map.Entry::getKey, e -> (Integer) e.getValue()));