1、list转Map<String,String>
Map<String, String> map = list.stream().collect(Collectors.toMap(实体类::get方法, 实体类::get方法));
2、list转Map<String,实体类>
Map<String, 实体类> map = list.stream().collect(Collectors.toMap(实体类::get方法, Function::identity));
3、list<实体类> 转 List< String >
List<String> stringList = list.stream().map(实体类::get方法).collect(Collectors.toList());