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