package com.yeshi.fanli.util.cache; import java.util.ArrayList; import java.util.List; import com.google.gson.Gson; import net.sf.json.JSONArray; public class ObjectCacheUtil { // public T getObj( String value) { // return new Gson().fromJson(value, Class); // } // // public List getObjList(String value) { // List list = new ArrayList<>(); // JSONArray array = JSONArray.fromObject(value); // for (int i = 0; i < array.size(); i++) { // list.add(new Gson().fromJson(array.optJSONObject(i).toString(), T)); // } // return list; // } }