判空

集合有值又为null,判空不太行
移除null元素先:
rowIndexList.removeAll(Collections.singleton(null));
foreach遇到这种空会报错
创建只有一个对象的list
Collections.singletonList(fbaConsignmentUploadDTO);
本地快进其他分支的代码(比如master)
git fetch origin master:master
stream分组
List<Employee> emps = getEmps();
Map<String, List<Employee>> map = emps.stream().collect(Collectors.groupingBy(Employee::getCity));
map.forEach((key,val)->{
System.out.println("城市:"+key+" ---员工集: "+val);
});