public class IndustryInfo implements Comparable<IndustryInfo>{
private String code;
private String name;
private Integer num;
private String str;
@Override
public int compareTo(IndustryInfo o) {
return 0;
}
//get set 省略
}
List<IndustryInfo> listRe = list.stream().sorted(Comparator.comparing(IndustryInfo::getNum).reversed()).collect(Collectors.toList());
List<Map<String, Object>> list8 = list7.stream().filter(map -> !map.get("name").toString().equals("高新技术企业")).collect(Collectors.toList());
Map<String, Object> map1 = list2.stream().filter(map -> map.get("name").toString().equals("黑榜企业")).collect(Collectors.toList()).get(0);
List<Map> list44= list4.stream()
.sorted((map1, map2) -> map1.get("cnt").toString().compareTo(map2.get("cnt").toString())).collect(Collectors.toList());
List<Map> collect1 = list6.stream().filter(map -> map.get("entStatus").toString().indexOf("在营") != -1).collect(Collectors.toList());
int sumZaiYing = collect1.stream().mapToInt(map -> Integer.valueOf(map.get("cnt").toString())).sum();
Map<Object, List<Map<String, Object>>> age = list.stream().collect(Collectors.groupingBy(map -> map.get("age")));
Map<String, List<User>> collect1 = list2.stream().collect(Collectors.groupingBy(User::getProvince));