Modifier and Type | Method and Description |
---|---|
boolean |
clearValue(int key)
Clears the current value for the specified property key.
|
<T> T |
getTypedValue(int key,
T defaultValue)
Gets the value for the specified property key whereby if no value is present the specified default value is returned.
|
Object |
getValue(int key)
Gets the value for the property with the specified key.
|
boolean |
isLocalValue(int key)
Determines whether the property with the specified key has a value stored
in the property bag.
|
boolean |
setValue(int key,
Object value)
Sets the property specified by the provided key to the provided object.
|
public boolean isLocalValue(int key)
key
- the key of the property to check.true
if there is a value for the property, otherwise false
.public Object getValue(int key)
key
- the key of the property.public boolean setValue(int key, Object value)
key
- the key of the property to set.value
- the value of the property.true
if the property has been successfully set, otherwise false
.public boolean clearValue(int key)
key
- the key of the property to clear.true
if the property has been successfully cleared, otherwise false
.public <T> T getTypedValue(int key, T defaultValue)
T
- the type of the expected value.key
- the key of the property.defaultValue
- the default value.