流式映射到映射

24 浏览
0 Comments

流式映射到映射

在Java 8中,我该如何将一个相同类型的MapStream扁平化为一个单独的Map

Map toMap(Stream> stream) {
    return stream. ???
}

0