@Override public SettingBase<Double> copy() { SettingBase<Double> ret = new SettingDouble( this.name, this.category, this.modus, this.defaultValue, this.storeType, this.usage); ret.value = this.value; ret.lastValue = this.lastValue; return ret; }
@Override public void setValue(String value) throws IllegalArgumentException { if (value.equals("null")) { super.setValue(null); } else { try { super.setValue(Integer.parseInt(value)); } catch (NumberFormatException e) { throw new IllegalArgumentException("Argument must be parseable to type Integer"); } } }