【MapSheep】
[好记性不如烂笔头]
Map<String, String> resultMap = 
    map.entrySet().stream().collect(Collectors.toMap(entry -> entry.getKey(),
			entry -> Optional.ofNullable(entry.getValue()).orElse("")));
posted on 2023-11-07 10:28  (Play)  阅读(478)  评论(0编辑  收藏  举报