Package de.uplanet.lucy.server
Class SharedState
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,
Object>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,
V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsKey
(Object p_key) Get an object from the shared state.void
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsValue, entrySet, forEach, getOrDefault, isEmpty, keySet, merge, newHashMap, putAll, putIfAbsent, remove, replace, replace, replaceAll, size, values
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
SharedState
public SharedState()
-
-
Method Details
-
get
-
containsKey
- Specified by:
containsKey
in interfaceMap<String,
Object> - Overrides:
containsKey
in classHashMap<String,
Object>
-
put
-
remove
-
get
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.
-
getAt
-
putAt
-