Java8 List<Object> 转成 List<Map<String, Object>>

import cn.hutool.core.bean.BeanUtil;

List list = new ArrayList<>();
List> objectList = list.stream().map(obj -> BeanUtil.beanToMap(obj)).collect(Collectors.toList());



Java8 List<Object> 转成 List<JSONObject>

 

你可能感兴趣的:(Java8,Map,List)