List tableData = new ArrayList(1);
tableData = tableData.stream().sorted(Comparator.comparing(jsonObject -> StringNullUtil.isNotBlank((jsonObject).getString("id1Sort"))?(jsonObject).getInteger("id1Sort"):0)).collect(Collectors.toList());
List //代码效果参考:http://www.zidongmutanji.com/bxxx/446364.html
collect = deptAllList.stream().filter(dept -> dept.getDeptId().intValue() != dept.getParentId()).sorted(Comparator.comparingInt(SysDept::getSort)).map(dept -> {
DeptTree node = new DeptTree();
node.setId(dept.getDeptId());
node.setParentId(dept.getParentId());
node.setName(dept.getName());
return node;
}).collect(Collectors.toList());
Map
//代码效果参考:http://www.zidongmutanji.com/bxxx/297284.html
.collect(Collectors.groupingBy(CatalogSystem::getName));//list按逗号隔开,输出string
List msgList = new ArrayList();
msgList.stream().map(v->String.valueOf(v)).collect(Collectors.joining(";"))
Map map = userList.stream().collect(Collectors.toMap(User::getAge, User::getName, (a, b) -> b));
Map sysDeptMap=sysDeptList.//代码效果参考:http://www.zidongmutanji.com/bxxx/316494.html
stream().collect(Collectors.toMap(SysDept::getName, v -> v));List roleMenuList = Arrays.stream(menuIds.split(",")).map(menuId -> {