T - The real type of the valuepublic class ReadOnlyValue<T> extends Object implements Value<T>
| Constructor and Description |
|---|
ReadOnlyValue(T value)
Creates a new read-only value.
|
| Modifier and Type | Method and Description |
|---|---|
T |
getValue()
Returns the wrapped value.
|
T |
getValue(T defaultValue)
Returns the wrapped value, if possible.
|
void |
setValue(T newValue)
Sets a new wrapped value.
|
public ReadOnlyValue(T value)
value - The value to wrappublic T getValue() throws ConfigurationException
getValue in interface Value<T>ConfigurationException - if a configuration error occursValue.getValue()public T getValue(T defaultValue)
getValue in interface Value<T>defaultValue - The default value to return in case of an errorValue.getValue(java.lang.Object)public void setValue(T newValue) throws ConfigurationException
setValue in interface Value<T>newValue - The new wrapped valueConfigurationException - if a configuration error occursValue.setValue(java.lang.Object)Copyright © 2026. All rights reserved.