protected List<MyOrderBean.ListEntity> getLocalList(String saveKey) { return new Prefser(AppTools.getSharePreferences()) .get( saveKey, new TypeToken<List<MyOrderBean.ListEntity>>() { @Override public Type getType() { return super.getType(); } }, new ArrayList<MyOrderBean.ListEntity>()); }
protected void saveListToLocal(String saveKey) { Prefser prefser = new Prefser(AppTools.getSharePreferences()); prefser.put(saveKey, list); }