public final void restore( ParamSharedPrefWrapper paramSharedPrefWrapper, ParameterKey[] arrparameterKey) { HashMap<String, String> hashMap = new HashMap<String, String>(); for (ParameterKey parameterKey : arrparameterKey) { String string; if (!parameterKey.isPersistent() || (string = paramSharedPrefWrapper.getParamFromSP( this.getSharedPreferenceKey(parameterKey), null)) == null) continue; hashMap.put(parameterKey.name(), string); } this.readStringMapToLoad(hashMap); }
public final void store(ParamSharedPrefWrapper paramSharedPrefWrapper) { for (Map.Entry<String, String> entry : this.getStringMapToWriteInSP().entrySet()) { paramSharedPrefWrapper.setParamToSP(entry.getKey(), entry.getValue()); } }