Class VariableMapImpl
java.lang.Object
org.camunda.bpm.engine.variable.impl.VariableMapImpl
- All Implemented Interfaces:
Serializable
,Map<String,
,Object> VariableContext
,VariableMap
- Author:
- Daniel Meyer
- See Also:
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionInterprets the variable map as variable contextvoid
clear()
boolean
containsKey
(Object key) boolean
containsValue
(Object value) boolean
containsVariable
(String variableName) Checks whether a variable with the given name is resolve through this context.entrySet()
boolean
<T> T
<T extends TypedValue>
TgetValueTyped
(String name) int
hashCode()
boolean
isEmpty()
keySet()
void
putValueTyped
(String name, TypedValue value) Resolve a value in this context.int
size()
toString()
values()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
variables
-
-
Constructor Details
-
VariableMapImpl
-
VariableMapImpl
-
VariableMapImpl
public VariableMapImpl()
-
-
Method Details
-
putValue
- Specified by:
putValue
in interfaceVariableMap
-
putValueTyped
- Specified by:
putValueTyped
in interfaceVariableMap
-
getValue
- Specified by:
getValue
in interfaceVariableMap
-
getValueTyped
- Specified by:
getValueTyped
in interfaceVariableMap
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKey
in interfaceMap<String,
Object>
-
containsValue
- Specified by:
containsValue
in interfaceMap<String,
Object>
-
get
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-
toString
-
equals
-
hashCode
public int hashCode() -
asValueMap
-
resolve
Description copied from interface:VariableContext
Resolve a value in this context.- Specified by:
resolve
in interfaceVariableContext
- Parameters:
variableName
- the name of the variable to resolve.- Returns:
- the value of the variable or null in case the variable does not exist.
-
containsVariable
Description copied from interface:VariableContext
Checks whether a variable with the given name is resolve through this context.- Specified by:
containsVariable
in interfaceVariableContext
- Parameters:
variableName
- the name of the variable to check- Returns:
- true if the variable is resolve.
-
asVariableContext
Description copied from interface:VariableMap
Interprets the variable map as variable context- Specified by:
asVariableContext
in interfaceVariableMap
- Returns:
- A VariableContext which is capable of resolving all variables in the map
-