org.camunda.bpm.engine.impl.core.variable
Class VariableMapImpl

java.lang.Object
  extended by org.camunda.bpm.engine.impl.core.variable.VariableMapImpl
All Implemented Interfaces:
Serializable, Map<String,Object>, VariableMap

public class VariableMapImpl
extends Object
implements VariableMap, Serializable

Author:
Daniel Meyer
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
protected  Map<String,TypedValue> variables
           
 
Constructor Summary
VariableMapImpl()
           
VariableMapImpl(Map<String,Object> map)
           
VariableMapImpl(VariableMapImpl map)
           
 
Method Summary
 Map<String,Object> asValueMap()
           
 void clear()
           
 boolean containsKey(Object key)
           
 boolean containsValue(Object value)
           
 Set<Map.Entry<String,Object>> entrySet()
           
 boolean equals(Object obj)
           
 Object get(Object key)
           
<T> T
getValue(String name, Class<T> type)
           
<T extends TypedValue>
T
getValueTyped(String name)
           
 int hashCode()
           
 boolean isEmpty()
           
 Set<String> keySet()
           
 Object put(String key, Object value)
           
 void putAll(Map<? extends String,? extends Object> m)
           
 VariableMap putValue(String name, Object value)
           
 VariableMap putValueTyped(String name, TypedValue value)
           
 Object remove(Object key)
           
 int size()
           
 String toString()
           
 Collection<Object> values()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

variables

protected Map<String,TypedValue> variables
Constructor Detail

VariableMapImpl

public VariableMapImpl(VariableMapImpl map)

VariableMapImpl

public VariableMapImpl(Map<String,Object> map)

VariableMapImpl

public VariableMapImpl()
Method Detail

putValue

public VariableMap putValue(String name,
                            Object value)
Specified by:
putValue in interface VariableMap

putValueTyped

public VariableMap putValueTyped(String name,
                                 TypedValue value)
Specified by:
putValueTyped in interface VariableMap

getValue

public <T> T getValue(String name,
                      Class<T> type)
Specified by:
getValue in interface VariableMap

getValueTyped

public <T extends TypedValue> T getValueTyped(String name)
Specified by:
getValueTyped in interface VariableMap

size

public int size()
Specified by:
size in interface Map<String,Object>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map<String,Object>

containsKey

public boolean containsKey(Object key)
Specified by:
containsKey in interface Map<String,Object>

containsValue

public boolean containsValue(Object value)
Specified by:
containsValue in interface Map<String,Object>

get

public Object get(Object key)
Specified by:
get in interface Map<String,Object>

put

public Object put(String key,
                  Object value)
Specified by:
put in interface Map<String,Object>

remove

public Object remove(Object key)
Specified by:
remove in interface Map<String,Object>

putAll

public void putAll(Map<? extends String,? extends Object> m)
Specified by:
putAll in interface Map<String,Object>

clear

public void clear()
Specified by:
clear in interface Map<String,Object>

keySet

public Set<String> keySet()
Specified by:
keySet in interface Map<String,Object>

values

public Collection<Object> values()
Specified by:
values in interface Map<String,Object>

entrySet

public Set<Map.Entry<String,Object>> entrySet()
Specified by:
entrySet in interface Map<String,Object>

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Specified by:
equals in interface Map<String,Object>
Overrides:
equals in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface Map<String,Object>
Overrides:
hashCode in class Object

asValueMap

public Map<String,Object> asValueMap()


Copyright © 2015 camunda services GmbH. All rights reserved.