Class MapMutableProperties
- java.lang.Object
-
- io.annot8.implementations.support.properties.MapMutableProperties
-
- All Implemented Interfaces:
io.annot8.api.properties.MutableProperties,io.annot8.api.properties.Properties
public class MapMutableProperties extends Object implements io.annot8.api.properties.MutableProperties
Implementation of MutableProperties interface using an in-memory HashMap to store the properties.
-
-
Constructor Summary
Constructors Constructor Description MapMutableProperties()Create a new instance with no key-valuesMapMutableProperties(io.annot8.api.properties.Properties properties)Create a new instance with key-values from an existing Properties object *MapMutableProperties(Map<String,Object> properties)Create a new instance with key-values from an existing Map
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Map<String,Object>getAll()inthashCode()Optional<Object>remove(String key)voidset(String key, Object value)StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Constructor Detail
-
MapMutableProperties
public MapMutableProperties()
Create a new instance with no key-values
-
MapMutableProperties
public MapMutableProperties(io.annot8.api.properties.Properties properties)
Create a new instance with key-values from an existing Properties object *- Parameters:
properties- properties to copy
-
-
Method Detail
-
getAll
public Map<String,Object> getAll()
- Specified by:
getAllin interfaceio.annot8.api.properties.Properties
-
set
public void set(String key, Object value)
- Specified by:
setin interfaceio.annot8.api.properties.MutableProperties
-
remove
public Optional<Object> remove(String key)
- Specified by:
removein interfaceio.annot8.api.properties.MutableProperties
-
-