public class StableOptionValue<T> extends OptionValue<T>
OptionValue.MultipleOverridesScope, OptionValue.OverrideScope, OptionValue.SingleOverrideScope
Modifier and Type | Field and Description |
---|---|
private boolean |
getValueCalled
Used to assert the invariant for stability.
|
value
Constructor and Description |
---|
StableOptionValue()
Creates an uninitialized stable option value for a subclass that initializes itself
lazily . |
StableOptionValue(T value)
Creates a stable option value.
|
Modifier and Type | Method and Description |
---|---|
T |
getValue()
Gets the value of this option.
|
private boolean |
initGetValueCalled() |
void |
setValue(Object v)
Sets the value of this option.
|
defaultValue, getDefaultValue, getDescriptor, getName, getOverrideScope, getValues, hasDefaultValue, override, override, override, setDescriptor, setOverrideScope, toString
private boolean getValueCalled
public StableOptionValue(T value)
public StableOptionValue()
lazily
.public final T getValue()
getValue
in class OptionValue<T>
private boolean initGetValueCalled()
public final void setValue(Object v)
This must only be called if getValue()
has never been called.
setValue
in class OptionValue<T>