public class ConfigAttributeImpl<T> extends java.lang.Object implements ConfigAttribute<T>
| Constructor and Description |
|---|
ConfigAttributeImpl(java.lang.Class<T> type,
T value) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<T> |
getType()
Returns the class of the type of the value being held
|
T |
getValue()
Returns the value being held
|
boolean |
setValue(T value)
Sets the value of this property.
|
public boolean setValue(T value)
Property This can fail and return false if, for example, the value did not satisfy the constraints of the property.
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)public T getValue()
HasValue