示例#1
0
 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);
 }
示例#2
0
 public final void store(ParamSharedPrefWrapper paramSharedPrefWrapper) {
   for (Map.Entry<String, String> entry : this.getStringMapToWriteInSP().entrySet()) {
     paramSharedPrefWrapper.setParamToSP(entry.getKey(), entry.getValue());
   }
 }