public class DoubleValue extends AbstractValue<Double>
attribute, configuration| Constructor and Description |
|---|
DoubleValue(Configuration configuration,
String attribute)
Creates a new double value that updates its value to the given attribute
from the given configuration.
|
| Modifier and Type | Method and Description |
|---|---|
Double |
getValue()
Returns the wrapped value.
|
Double |
getValue(Double defaultValue)
Returns the wrapped value, if possible.
|
void |
setValue(Double newValue)
Sets a new wrapped value.
|
public DoubleValue(Configuration configuration, String attribute)
configuration - The configuration that created this valueattribute - The name of this value’s attribute namepublic Double getValue() throws ConfigurationException
ConfigurationException - if a configuration error occursValue.getValue()public Double getValue(Double defaultValue)
defaultValue - The default value to return in case of an errorValue.getValue(java.lang.Object)public void setValue(Double newValue) throws ConfigurationException
newValue - The new wrapped valueConfigurationException - if a configuration error occursValue.setValue(java.lang.Object)Copyright © 2026. All rights reserved.