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