Map<key, List a> 取出Map的List a
map.values().stream().flatMap(Collection::stream).collect(Collectors.toList());
flatMap(Collection::Stream)用法
最新推荐文章于 2022-09-22 10:25:23 发布
Map<key, List a> 取出Map的List a
map.values().stream().flatMap(Collection::stream).collect(Collectors.toList());