Map<String, Object> merged = lists.stream()
        .map(Map::entrySet)
        .flatMap(Set::stream)
        .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));

https://segmentfault.com/q/1010000010380854
posted on 2019-04-02 14:45  情月  阅读(230)  评论(0编辑  收藏  举报