stream之List转Map---Collectors.toMap()介绍
Collectors.toMap 有三个重载方法:
toMap(Function<? super T, ? extends K> keyMapper, Function<? super T, ? extends U> valueMapper);
toMap(Function<? super T, ? extends K> keyMapper, Function<? super T, ? extends U> valueMapper,
BinaryOperato
原创
2021-07-04 20:17:29 ·
422 阅读 ·
0 评论