2020年2月29日

摘要: Map<String,Bean> map = list.stream().collect(Collectors.toMap(bean -> bean.getItemA(),bean->bean)); 阅读全文

posted @ 2020-02-29 14:35 wzhw2015 阅读(1789) 评论(0) 推荐(0) 编辑

摘要: Map<String,String> itemMap = itemList.stream.collect(Collectors.toMap(Bean::getItemA,Bean::getItemB)); 阅读全文

posted @ 2020-02-29 11:10 wzhw2015 阅读(206) 评论(0) 推荐(0) 编辑

摘要: public static <T> List<List<T>> split(List<T> sourceList, int count) { List<List<T>> resultList = new ArrayList<>(); int size = sourceList.size(); if 阅读全文

posted @ 2020-02-29 10:42 wzhw2015 阅读(930) 评论(0) 推荐(0) 编辑

摘要: List<String> itemList = itemMap.entrySet().stream() .collect(Collectors.groupingBy(e -> e.getKey().substring(11))) .keySet() .stream() .map(key -> key 阅读全文

posted @ 2020-02-29 10:31 wzhw2015 阅读(587) 评论(0) 推荐(0) 编辑

摘要: List<String> itemList = list.stream().collect(Collectors.groupingBy(Bean::getItem)).keySet().stream().map(key -> key).collect(Collectors.toList()); 阅读全文

posted @ 2020-02-29 09:56 wzhw2015 阅读(1433) 评论(0) 推荐(0) 编辑

摘要: 1.一个一个项目的分组合计 list.stream().collect( Collectors..groupingBy( Bean::getItemA ,Collectors..groupingBy( Bean::getItemB, Collectors..reducing( new Bean(), 阅读全文

posted @ 2020-02-29 09:13 wzhw2015 阅读(657) 评论(0) 推荐(0) 编辑

摘要: 首先可以先观察一下文件angular-cli.json就会看到 Angular是先执行的index.html,然后执行main.ts 阅读全文

posted @ 2020-02-29 00:05 wzhw2015 阅读(730) 评论(0) 推荐(0) 编辑


Copyright © 2024 wzhw2015
Powered by .NET 8.0 on Kubernetes