Package de.uplanet.lucy.server
Class SharedState
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,Object>
-
- de.uplanet.lucy.server.SharedState
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,Object>
public final class SharedState extends HashMap<String,Object>
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description SharedState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsKey(Object p_key)
Object
get(Object p_key)
Object
get(String p_strKey, Object p_objFallback)
Get an object from the shared state.Object
getAt(String p_strKey)
Object
put(String p_strKey, Object p_value)
void
putAt(String p_strKey, Object p_value)
Object
remove(Object p_key)
-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsValue, entrySet, forEach, getOrDefault, isEmpty, keySet, merge, putAll, putIfAbsent, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
-
-
-
Method Detail
-
containsKey
public boolean containsKey(Object p_key)
- Specified by:
containsKey
in interfaceMap<String,Object>
- Overrides:
containsKey
in classHashMap<String,Object>
-
get
public Object get(String p_strKey, Object p_objFallback)
Get an object from the shared state.If the key does not exist in the shared state, the given fallback will be returned instead.
- Parameters:
p_strKey
- The key.p_objFallback
- The value that will be returned if the given key does not exist in the shared state.- Returns:
- The value, or the fallback value.
-
-