摘要:Map<String, List<Dto>> deviceMap = deviceList.stream().collect(Collectors.groupingBy(Dto::getFlowId)); 场景:如果getFlowId是null.就会包以下错误 element cannot be m
阅读全文
|
随笔分类 - java8新特性
摘要:Map<String, List<Dto>> deviceMap = deviceList.stream().collect(Collectors.groupingBy(Dto::getFlowId)); 场景:如果getFlowId是null.就会包以下错误 element cannot be m
阅读全文
摘要:1、list<dto> List<CollectionItemsTemp> itemsList = new ArrayList<>(); List<String> nameList = new ArrayList<>(); if (ToolUtil.isNotEmpty(itemsList) &&
阅读全文
摘要:转载:https://it.deepinmind.com/java/2015/03/17/20-examples-of-date-and-time-api-from-Java8.html
阅读全文
摘要:package com.test;import com.test.dao.Person;import com.test.dao.Person1;import java.io.File;import java.io.IOException;import java.nio.charset.Standar
阅读全文
摘要:package com.test;import com.test.dao.Person;import java.util.*;import java.util.stream.Collectors;import java.util.stream.Stream;public class TestAppl
阅读全文
|