摘要: list.stream().collect(Collectors.toMap(xxx)): list.stream():把list转成流,list.stream().collect():把流转成集合,具体是map,还是list/set就看参数是Collectors.toMap还是Collectors 阅读全文
posted @ 2022-01-27 11:52 杨吃羊 阅读(7545) 评论(0) 推荐(0)