-
- All Superinterfaces:
Properties
public interface MutableProperties extends Properties
Base mutable properties interface from which all other mutable properties extend.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidadd(Map<String,Object> properties)Add all properties from the given map, overwriting values where they already existOptional<Object>remove(String key)Remove the property for the specified key, and return it's object (if it exists)default voidremove(Collection<String> keys)Remove all properties that match the given keysdefault voidremoveAll()Return a map of all propertiesvoidset(String key, Object value)Set the property value for the specified keydefault voidset(Map<String,Object> properties)Set the current properties to be equal to the map-
Methods inherited from interface io.annot8.core.properties.Properties
equals, get, getAll, getAll, getObjectOrDefault, getOrDefault, getProperty, has, has, hashCode, keys, listKeys
-
-
-
-
Method Detail
-
set
void set(String key, Object value)
Set the property value for the specified key- Parameters:
key- the keyvalue- the value
-
remove
Optional<Object> remove(String key)
Remove the property for the specified key, and return it's object (if it exists)- Parameters:
key- the key to remove- Returns:
- object which was present at that key (if it existed)
-
set
default void set(Map<String,Object> properties)
Set the current properties to be equal to the map- Parameters:
properties- map to set
-
removeAll
default void removeAll()
Return a map of all properties
-
add
default void add(Map<String,Object> properties)
Add all properties from the given map, overwriting values where they already exist- Parameters:
properties- the map to add
-
remove
default void remove(Collection<String> keys)
Remove all properties that match the given keys- Parameters:
keys- the keys to remove
-
-