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 booleancontainsKey(Object p_key)Objectget(Object p_key)Objectget(String p_strKey, Object p_objFallback)Get an object from the shared state.ObjectgetAt(String p_strKey)Objectput(String p_strKey, Object p_value)voidputAt(String p_strKey, Object p_value)Objectremove(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:
containsKeyin interfaceMap<String,Object>- Overrides:
containsKeyin 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.
-
-