摘要: 语法糖取对象A的list中的两个字段插入map List<A> as=new ArrayList<>(); Map<String,String> AMap=as.stream().collect(Collectors.toMap(A::getCode,A::getName)); 阅读全文
posted @ 2021-12-22 16:41 锦瑟流年3344 阅读(181) 评论(0) 推荐(0) 编辑