/** * Appends the YoBoolean representation of the given double value to the given StringBuffer. * * @param stringBuffer StringBuffer to append to * @param doubleValue double value to convert to YoBoolean representation */ @Override public void getValueStringFromDouble(StringBuffer stringBuffer, double doubleValue) { stringBuffer.append(convertDoubleToBoolean(doubleValue)); }
/** * Set the value of this YoBoolean using the given double, passed through {@link #convertDoubleToBoolean(double)}. * * @param value boolean to convert and set this YoBoolean to * @param notifyListeners boolean determining whether or not to call {@link #notifyVariableChangedListeners()} */ @Override public void setValueFromDouble(double value, boolean notifyListeners) { set(convertDoubleToBoolean(value), notifyListeners); }