public class PropertyStorage
extends java.lang.Object
| Constructor and Description |
|---|
PropertyStorage()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(java.lang.String key)
Indicates whether this storage contains the requested property.
|
void |
delete(java.lang.String key)
Deletes the requested property if present.
|
<T> java.util.Optional<T> |
getValue(java.lang.String key)
Returns a property.
|
void |
set(java.lang.String key,
java.lang.Object property)
Sets a property.
|
public PropertyStorage()
public void set(java.lang.String key,
java.lang.Object property)
key - keyproperty - propertypublic <T> java.util.Optional<T> getValue(java.lang.String key)
T - property typekey - keyOptional will be
returned if the property does not exist or the type does not matchpublic void delete(java.lang.String key)
key - keypublic boolean contains(java.lang.String key)
key - keytrue if this storage contains the requested property;
false