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