Example #1
0
 private static final StUhf.InterrogatorModel getSavedModel() {
   String modelName = getConfiguration().getString("modelName", "");
   if (modelName.length() != 0) {
     return StUhf.InterrogatorModel.valueOf(modelName);
   }
   return null;
 }
Example #2
0
 private static final void saveModelName(StUhf.InterrogatorModel model) {
   if (model == null) {
     throw new NullPointerException();
   }
   getConfiguration().setString("modelName", model.name());
 }