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
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final DmnEngineLogger
protected final Map<String,
TypedValue> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
boolean
containsKey
(Object key) boolean
containsValue
(Object value) entrySet()
<T> T
Returns the value of the result entry for a given output name.Returns a map of the result entry values by output name.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
Returns the value of the first result entry.<T extends TypedValue>
TReturns the typed value of the first result entry.<T> T
Returns the value of the single entry of the decision result.<T extends TypedValue>
TReturns the typed value of the single entry of the decision result.boolean
isEmpty()
keySet()
void
void
putAllValues
(Map<String, TypedValue> values) void
putValue
(String name, TypedValue value) int
size()
toString()
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 Details
-
LOG
-
outputValues
-
-
Constructor Details
-
DmnDecisionResultEntriesImpl
public DmnDecisionResultEntriesImpl()
-
-
Method Details
-
putValue
-
putAllValues
-
getEntry
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:
-
getEntryTyped
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKey
in interfaceMap<String,
Object>
-
keySet
-
values
-
toString
-
containsValue
- Specified by:
containsValue
in interfaceMap<String,
Object>
-
get
-
put
-
remove
-
putAll
-
clear
public void clear() -
entrySet
-