/** * Sets the value of this double property. The value is limited to the * min/max range given during construction. * * @return the previous value, or if not set: the default value. If no * default value exists, 0.0 if that value is in the range [minValue, * maxValue], or minValue if 0.0 is not in the range */ public double set(double value) { String prevValue = setString(Double.toString(limit(value))); if (prevValue == null) { prevValue = getDefaultValue(); if (prevValue == null) { return noValue(); } } double v = Double.parseDouble(prevValue); return limit(v); }