Package org.camunda.bpm.dmn.engine.impl
Class DmnDecisionResultEntriesImpl
- java.lang.Object
-
- org.camunda.bpm.dmn.engine.impl.DmnDecisionResultEntriesImpl
-
- All Implemented Interfaces:
Serializable,Map<String,Object>,DmnDecisionResultEntries
public class DmnDecisionResultEntriesImpl extends Object implements DmnDecisionResultEntries
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static DmnEngineLoggerLOGprotected Map<String,TypedValue>outputValues
-
Constructor Summary
Constructors Constructor Description DmnDecisionResultEntriesImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(Object key)booleancontainsValue(Object value)Set<Map.Entry<String,Object>>entrySet()Objectget(Object key)<T> TgetEntry(String name)Returns the value of the result entry for a given output name.Map<String,Object>getEntryMap()Returns a map of the result entry values by output name.Map<String,TypedValue>getEntryMapTyped()Returns a map of the typed result entry values by output name.<T extends TypedValue>
TgetEntryTyped(String name)Returns the typed value of the result entry for a given output name.<T> TgetFirstEntry()Returns the value of the first result entry.<T extends TypedValue>
TgetFirstEntryTyped()Returns the typed value of the first result entry.<T> TgetSingleEntry()Returns the value of the single entry of the decision result.<T extends TypedValue>
TgetSingleEntryTyped()Returns the typed value of the single entry of the decision result.booleanisEmpty()Set<String>keySet()Objectput(String key, Object value)voidputAll(Map<? extends String,?> m)voidputAllValues(Map<String,TypedValue> values)voidputValue(String name, TypedValue value)Objectremove(Object key)intsize()StringtoString()Collection<Object>values()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Field Detail
-
LOG
public static final DmnEngineLogger LOG
-
outputValues
protected final Map<String,TypedValue> outputValues
-
-
Method Detail
-
putValue
public void putValue(String name, TypedValue value)
-
putAllValues
public void putAllValues(Map<String,TypedValue> values)
-
getEntry
public <T> T getEntry(String name)
Description copied from interface:DmnDecisionResultEntriesReturns the value of the result entry for a given output name.- Specified by:
getEntryin interfaceDmnDecisionResultEntries- Type Parameters:
T- the type of the result entry- Parameters:
name- the name of the output- Returns:
- the value for the given name or null if no value exists for this name
- See Also:
DmnDecisionResultEntries.getEntryTyped(String)
-
getEntryTyped
public <T extends TypedValue> T getEntryTyped(String name)
Description copied from interface:DmnDecisionResultEntriesReturns the typed value of the result entry for a given output name.- Specified by:
getEntryTypedin interfaceDmnDecisionResultEntries- Type Parameters:
T- the type of the result entry- Parameters:
name- the name of the output- Returns:
- the typed value for the given name or null if no value exists for this name
- See Also:
DmnDecisionResultEntries.getEntry(String)
-
getFirstEntryTyped
public <T extends TypedValue> T getFirstEntryTyped()
Description copied from interface:DmnDecisionResultEntriesReturns the typed value of the first result entry.- Specified by:
getFirstEntryTypedin interfaceDmnDecisionResultEntries- Type Parameters:
T- the type of the result entry- Returns:
- the typed value of the first result entry or null if none exists
- See Also:
DmnDecisionResultEntries.getFirstEntry()
-
getSingleEntryTyped
public <T extends TypedValue> T getSingleEntryTyped()
Description copied from interface:DmnDecisionResultEntriesReturns the typed value of the single entry of the decision result. Asserts that the decision result only has one entry.- Specified by:
getSingleEntryTypedin interfaceDmnDecisionResultEntries- Type Parameters:
T- the type of the result entry- Returns:
- the typed value of the single result entry or null if none exists
- See Also:
DmnDecisionResultEntries.getSingleEntry()
-
getFirstEntry
public <T> T getFirstEntry()
Description copied from interface:DmnDecisionResultEntriesReturns the value of the first result entry.- Specified by:
getFirstEntryin interfaceDmnDecisionResultEntries- Type Parameters:
T- the type of the result entry- Returns:
- the value of the first result entry or null if none exists
- See Also:
DmnDecisionResultEntries.getFirstEntryTyped()
-
getSingleEntry
public <T> T getSingleEntry()
Description copied from interface:DmnDecisionResultEntriesReturns the value of the single entry of the decision result. Asserts that the decision result only has one entry.- Specified by:
getSingleEntryin interfaceDmnDecisionResultEntries- Type Parameters:
T- the type of the result entry- Returns:
- the value of the single result entry or null if none exists
- See Also:
DmnDecisionResultEntries.getSingleEntryTyped()
-
getEntryMap
public Map<String,Object> getEntryMap()
Description copied from interface:DmnDecisionResultEntriesReturns a map of the result entry values by output name.- Specified by:
getEntryMapin interfaceDmnDecisionResultEntries- Returns:
- the values of the decision result entries
- See Also:
DmnDecisionResultEntries.getEntryMapTyped()
-
getEntryMapTyped
public Map<String,TypedValue> getEntryMapTyped()
Description copied from interface:DmnDecisionResultEntriesReturns a map of the typed result entry values by output name.- Specified by:
getEntryMapTypedin interfaceDmnDecisionResultEntries- Returns:
- the typed values of the decision result entries
- See Also:
DmnDecisionResultEntries.getEntryMap()
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceMap<String,Object>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValuein interfaceMap<String,Object>
-
-