Class MapMutableProperties
- java.lang.Object
-
- io.annot8.implementations.support.properties.MapMutableProperties
-
- All Implemented Interfaces:
MutableProperties,Properties
public class MapMutableProperties extends Object implements 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(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
-
Methods inherited from interface io.annot8.api.properties.MutableProperties
add, remove, removeAll, set
-
Methods inherited from interface io.annot8.api.properties.Properties
get, get, getAll, getObjectOrDefault, getOrDefault, has, has, keys, listKeys
-
-
-
-
Constructor Detail
-
MapMutableProperties
public MapMutableProperties()
Create a new instance with no key-values
-
MapMutableProperties
public MapMutableProperties(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 interfaceProperties
-
set
public void set(String key, Object value)
- Specified by:
setin interfaceMutableProperties
-
remove
public Optional<Object> remove(String key)
- Specified by:
removein interfaceMutableProperties
-
-