list map互相转换

List<PvUvBo> filterPvUvMap = pvUvMap.values().stream().collect(Collectors.toList());

Map<String, PvUvBo> pvUvMap = pvUvBoList.stream().
collect(Collectors.toMap(PvUvBo::getSourceCode, Function.identity()));
posted @ 2021-03-13 18:26  启程华夏  阅读(122)  评论(0编辑  收藏  举报