Beispiel #1
0
  @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;
  }
Beispiel #2
0
 @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");
     }
   }
 }