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 DmnEngineLogger
LOG
protected Map<String,TypedValue>
outputValues
-
Constructor Summary
Constructors Constructor Description DmnDecisionResultEntriesImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
containsKey(Object key)
boolean
containsValue(Object value)
Set<Map.Entry<String,Object>>
entrySet()
Object
get(Object key)
<T> T
getEntry(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> T
getFirstEntry()
Returns the value of the first result entry.<T extends TypedValue>
TgetFirstEntryTyped()
Returns the typed value of the first result entry.<T> T
getSingleEntry()
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.boolean
isEmpty()
Set<String>
keySet()
Object
put(String key, Object value)
void
putAll(Map<? extends String,?> m)
void
putAllValues(Map<String,TypedValue> values)
void
putValue(String name, TypedValue value)
Object
remove(Object key)
int
size()
String
toString()
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:DmnDecisionResultEntries
Returns the value of the result entry for a given output name.- Specified by:
getEntry
in 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:DmnDecisionResultEntries
Returns the typed value of the result entry for a given output name.- Specified by:
getEntryTyped
in 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:DmnDecisionResultEntries
Returns the typed value of the first result entry.- Specified by:
getFirstEntryTyped
in 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:DmnDecisionResultEntries
Returns the typed value of the single entry of the decision result. Asserts that the decision result only has one entry.- Specified by:
getSingleEntryTyped
in 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:DmnDecisionResultEntries
Returns the value of the first result entry.- Specified by:
getFirstEntry
in 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:DmnDecisionResultEntries
Returns the value of the single entry of the decision result. Asserts that the decision result only has one entry.- Specified by:
getSingleEntry
in 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:DmnDecisionResultEntries
Returns a map of the result entry values by output name.- Specified by:
getEntryMap
in interfaceDmnDecisionResultEntries
- Returns:
- the values of the decision result entries
- See Also:
DmnDecisionResultEntries.getEntryMapTyped()
-
getEntryMapTyped
public Map<String,TypedValue> getEntryMapTyped()
Description copied from interface:DmnDecisionResultEntries
Returns a map of the typed result entry values by output name.- Specified by:
getEntryMapTyped
in interfaceDmnDecisionResultEntries
- Returns:
- the typed values of the decision result entries
- See Also:
DmnDecisionResultEntries.getEntryMap()
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interfaceMap<String,Object>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue
in interfaceMap<String,Object>
-
-