public class ConfigAttributeImpl<T> extends Object implements ConfigAttribute<T>
| Constructor and Description |
|---|
ConfigAttributeImpl(FiberId identifier,
SerializableType<T> type,
T value) |
| Modifier and Type | Method and Description |
|---|---|
SerializableType<T> |
getConfigType() |
FiberId |
getIdentifier() |
T |
getValue()
Returns the value being held.
|
boolean |
setValue(T value)
Sets the value of this property.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, create, getTypepublic ConfigAttributeImpl(FiberId identifier, SerializableType<T> type, @Nonnull T value)
public boolean setValue(@Nonnull T value)
PropertyThis can fail and return false if, for example, the value did not satisfy the constraints of the property.
This operation can still succeed with a rejected value,
if eg. a corrected value can be found.
setValue in interface Property<T>value - the new value this property should receivetrue if this property changed as a result of the callProperty.accepts(Object)@Nonnull public T getValue()
HasValuepublic SerializableType<T> getConfigType()
getConfigType in interface ConfigAttribute<T>public FiberId getIdentifier()
getIdentifier in interface ConfigAttribute<T>