Map<Long, FloorElement> floorElementMap2 = floorElementList4.stream().collect(Collectors.
toMap(FloorElement::getFloorId, value -> value));
流快速收集指定key-value的map集合
本文来自博客园,作者:三号小玩家,转载请注明原文链接:https://www.cnblogs.com/q1359720840/p/15805966.html
q1359720840 2022-01-15 00:37 原文
Map<Long, FloorElement> floorElementMap2 = floorElementList4.stream().collect(Collectors.
toMap(FloorElement::getFloorId, value -> value));
本文来自博客园,作者:三号小玩家,转载请注明原文链接:https://www.cnblogs.com/q1359720840/p/15805966.html