flatMap(Collection::Stream)用法

Map<key, List a> 取出Map的List a

map.values().stream().flatMap(Collection::stream).collect(Collectors.toList());

猜你喜欢

转载自blog.csdn.net/qq_43842093/article/details/124934770