Map的筛选和重组jdk1.8以上lambda
map = map.entrySet().stream()
.filter((e) -> checkValue(e.getKey(), e.getValue()))
.collect(Collectors.toMap(
(e) -> (String) e.getKey(),
(e) -> translate((List<Map<String,String>>)e.get.
原创
2021-08-26 13:16:41 ·
355 阅读 ·
0 评论