2019年9月2日
摘要: public static <E> List<E> getCommonsElements(List<E> list) { return list.stream() // list 对应的 Stream .collect(Collectors.toMap(e -> e, e -> 1, (a, b) 阅读全文
posted @ 2019-09-02 16:51 独醉笑清风 阅读(1521) 评论(0) 推荐(0) 编辑
摘要: Map<String,String> mapListStream = list.stream().collect(Collectors.toMap(key,value));key对应key,value对应value 阅读全文
posted @ 2019-09-02 14:18 独醉笑清风 阅读(158) 评论(0) 推荐(0) 编辑