Class DefaultFlowContext
- java.lang.Object
-
- de.codecentric.reedelk.platform.execution.context.DefaultFlowContext
-
- All Implemented Interfaces:
de.codecentric.reedelk.runtime.api.flow.Disposable,de.codecentric.reedelk.runtime.api.flow.FlowContext,Serializable,Map<String,Object>
public class DefaultFlowContext extends Object implements de.codecentric.reedelk.runtime.api.flow.FlowContext
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Vcompute(K key, BiFunction<? super K,? super V,? extends V> remappingFunction)VcomputeIfAbsent(K key, Function<? super K,? extends V> mappingFunction)VcomputeIfPresent(K key, BiFunction<? super K,? super V,? extends V> remappingFunction)booleancontains(String key)booleancontainsKey(Object key)booleancontainsValue(Object value)voiddispose()Set<Map.Entry<K,V>>entrySet()booleanequals(Object o)voidforEach(BiConsumer<? super K,? super V> action)static DefaultFlowContextfrom(de.codecentric.reedelk.runtime.api.message.Message message)Vget(Object key)VgetOrDefault(Object k, V defaultValue)inthashCode()booleanisEmpty()Set<K>keySet()Vmerge(K key, V value, BiFunction<? super V,? super V,? extends V> remappingFunction)Objectput(String key, Object value)voidputAll(Map<? extends K,? extends V> map)VputIfAbsent(K key, V value)voidregister(de.codecentric.reedelk.runtime.api.flow.Disposable disposable)Vremove(Object key)booleanremove(Object key, Object value)Vreplace(K key, V value)booleanreplace(K key, V oldValue, V newValue)voidreplaceAll(BiFunction<? super K,? super V,? extends V> function)intsize()StringtoString()Collection<V>values()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
-
-
-
Method Detail
-
from
public static DefaultFlowContext from(de.codecentric.reedelk.runtime.api.message.Message message)
-
contains
public boolean contains(String key)
- Specified by:
containsin interfacede.codecentric.reedelk.runtime.api.flow.FlowContext
-
register
public void register(de.codecentric.reedelk.runtime.api.flow.Disposable disposable)
- Specified by:
registerin interfacede.codecentric.reedelk.runtime.api.flow.FlowContext
-
dispose
public void dispose()
- Specified by:
disposein interfacede.codecentric.reedelk.runtime.api.flow.Disposable
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceMap<K,V>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValuein interfaceMap<K,V>
-
putAll
public void putAll(Map<? extends K,? extends V> map)
-
values
public Collection<V> values()
-
equals
public boolean equals(Object o)
-
hashCode
public int hashCode()
-
getOrDefault
public V getOrDefault(Object k, V defaultValue)
- Specified by:
getOrDefaultin interfaceMap<K,V>
-
forEach
public void forEach(BiConsumer<? super K,? super V> action)
-
replaceAll
public void replaceAll(BiFunction<? super K,? super V,? extends V> function)
- Specified by:
replaceAllin interfaceMap<K,V>
-
putIfAbsent
public V putIfAbsent(K key, V value)- Specified by:
putIfAbsentin interfaceMap<K,V>
-
replace
public boolean replace(K key, V oldValue, V newValue)
-
computeIfAbsent
public V computeIfAbsent(K key, Function<? super K,? extends V> mappingFunction)- Specified by:
computeIfAbsentin interfaceMap<K,V>
-
computeIfPresent
public V computeIfPresent(K key, BiFunction<? super K,? super V,? extends V> remappingFunction)- Specified by:
computeIfPresentin interfaceMap<K,V>
-
compute
public V compute(K key, BiFunction<? super K,? super V,? extends V> remappingFunction)
-
merge
public V merge(K key, V value, BiFunction<? super V,? super V,? extends V> remappingFunction)
-
-