public static void main(String[] args) {
List<Map<String, List<String>>> f =new ArrayList<>();
Map<String,List<String>> map1= new HashMap<>();
List<String> l = new ArrayList<>();
l.add("主持人");
l.add("记录人");
map1.put("role",l);
f.add(map1);
Map<String,List<String>> map2= new HashMap<>();
List<String> l2 = new ArrayList<>();
l2.add("账号登录");
l2.add("专用登录");
map2.put("dl",l);
f.add(map2);
Map<String, List<String>> funnelMap = f.stream().collect(Collectors.toMap(funnel -> funnel.entrySet().iterator().next().getKey(),
funnel -> funnel.entrySet().iterator().next().getValue()));
System.out.println(funnelMap);
}
2.
List<Long> atts = new ArrayList<>();
Map prepareDelAtts= atts.stream().collect(Collectors.toMap(Long::longValue,Long::longValue));