摘要: list操作 List转Map Map<String, String> collect = list.stream().collect(Collectors.toMap(p -> p.getId(), p -> p.getName())); 从 List 中取出某个属性的组成 list 集合 //1 阅读全文
posted @ 2020-07-07 21:03 习惯沉淀 阅读(7209) 评论(0) 推荐(0) 编辑