如何使用jdk8快速将一个map复制到另一个map时间:2025-03-29 08:10:04HashMap<String, Object> res = order.entrySet().stream().collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue, (a, b) -> a, HashMap::new));