public interface PropertyStorage
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(MapChangeListener<String,Object> l)
Adds the specified listener to the property map.
|
boolean |
contains(String key)
Indicates whether this storage contains the requested property.
|
<T> Optional<T> |
get(String key)
Returns a property.
|
Collection<String> |
getKeys()
Returns the keys that are currently used by the property storage.
|
void |
remove(String key)
Deletes the requested property if present.
|
void |
removeListener(MapChangeListener<String,Object> l)
Removes the specified listener from the property map.
|
<T> void |
set(String key,
T property)
Sets a property.
|
boolean contains(String key)
key - keytrue if this storage contains the requested property;
falsevoid remove(String key)
key - key<T> Optional<T> get(String key)
T - property typekey - keyOptional will be
returned if the property does not exist or the type does not match<T> void set(String key, T property)
key - keyproperty - propertyvoid addListener(MapChangeListener<String,Object> l)
l - change listenervoid removeListener(MapChangeListener<String,Object> l)
l - change listenerCollection<String> getKeys()