排序:
List<Map<String, Object>> mapList = this.riskLevelByCountry();
Collections.sort(mapList, (o1, o2) -> Integer.parseInt(o2.get("name").toString()) - Integer.parseInt(o1.get("name").toString()));
分组:
Map<String, List<Map<String, Object>>> mapList = list.stream().collect(Collectors.groupingBy((Map m) -> (String) m.get("countryName")));
过滤:
List<Map<String, Object>> collect = lbNewsFlashList.stream().filter(map -> map.get("countryCode").toString().equals(o1)).collect(Collectors.toList());