@PublicAPI public class UpdatableProperties<T> extends Object implements Serializable
Useful to know if the default value has been kept.
Managed parameter entities are RestartMode, BooleanWrapper, IntegerWrapper. If you want to add more entities, just add it in the @anyMetaDef annotation.
Constructor and Description |
---|
UpdatableProperties(T defaultValue)
Create a new instance of UpdatableProperties using a specified value.
|
Modifier and Type | Method and Description |
---|---|
T |
getValue()
Get the value of the property.
|
boolean |
isSet()
Tell if the value has been set or if it is the default one.
|
void |
setValue(T value)
Set the value of the property.
|
public UpdatableProperties(T defaultValue)
This value will be considered has the default one.
public T getValue()
public void setValue(T value)
value
- the new value to be set.public boolean isSet()