MCPcopy Create free account
hub / github.com/Bit0r/java-util / objectToMapList

Method objectToMapList

src/main/java/util/ExcelUtils.java:59–65  ·  view source on GitHub ↗

java对象转map @param objList @return

(List objList)

Source from the content-addressed store, hash-verified

57 * @return
58 */
59 public static List<Map<String, Object>> objectToMapList(List objList) {
60 List<Map<String, Object>> objMapList = new ArrayList<>();
61 if (ObjectUtil.isNotEmpty(objList)) {
62 objMapList = JSONArray.parseObject(JSONArray.parseArray(JSON.toJSONString(objList)).toJSONString(), List.class);
63 }
64 return objMapList;
65 }
66
67 /**
68 * excel 对象数据校验

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected