Package org.camunda.bpm.dmn.engine.impl
Class DmnDecisionRuleResultImpl
java.lang.Object
org.camunda.bpm.dmn.engine.impl.DmnDecisionRuleResultImpl
- All Implemented Interfaces:
Serializable
,Map<String,
,Object> DmnDecisionRuleResult
- 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 rule result entry for a given output name.Returns a map of the rule result entry values by output name.Returns a map of the typed rule result entry values by output name.<T extends TypedValue>
TgetEntryTyped
(String name) Returns the typed value of the rule result entry for a given output name.<T> T
Returns the value of the first rule result entry.<T extends TypedValue>
TReturns the typed value of the first rule result entry.<T> T
Returns the value of the single entry of the decision rule result.<T extends TypedValue>
TReturns the typed value of the single entry of the decision rule 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
-
DmnDecisionRuleResultImpl
public DmnDecisionRuleResultImpl()
-
-
Method Details
-
putValue
-
putAllValues
-
getEntry
Description copied from interface:DmnDecisionRuleResult
Returns the value of the rule result entry for a given output name.- Specified by:
getEntry
in interfaceDmnDecisionRuleResult
- Type Parameters:
T
- the type of the rule 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:DmnDecisionRuleResult
Returns the typed value of the rule result entry for a given output name.- Specified by:
getEntryTyped
in interfaceDmnDecisionRuleResult
- Type Parameters:
T
- the type of the rule 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:DmnDecisionRuleResult
Returns the typed value of the first rule result entry.- Specified by:
getFirstEntryTyped
in interfaceDmnDecisionRuleResult
- Type Parameters:
T
- the type of the rule result entry- Returns:
- the typed value of the first rule result entry or null if none exists
- See Also:
-
getSingleEntryTyped
Description copied from interface:DmnDecisionRuleResult
Returns the typed value of the single entry of the decision rule result. Which asserts that the decision rule result only has one entry.- Specified by:
getSingleEntryTyped
in interfaceDmnDecisionRuleResult
- Type Parameters:
T
- the type of the rule result entry- Returns:
- the typed value of the single rule result entry or null if none exists
- See Also:
-
getFirstEntry
public <T> T getFirstEntry()Description copied from interface:DmnDecisionRuleResult
Returns the value of the first rule result entry.- Specified by:
getFirstEntry
in interfaceDmnDecisionRuleResult
- Type Parameters:
T
- the type of the rule result entry- Returns:
- the value of the first rule result entry or null if none exists
- See Also:
-
getSingleEntry
public <T> T getSingleEntry()Description copied from interface:DmnDecisionRuleResult
Returns the value of the single entry of the decision rule result. Which asserts that the decision rule result only has one entry.- Specified by:
getSingleEntry
in interfaceDmnDecisionRuleResult
- Type Parameters:
T
- the type of the rule result entry- Returns:
- the value of the single rule result entry or null if none exists
- See Also:
-
getEntryMap
Description copied from interface:DmnDecisionRuleResult
Returns a map of the rule result entry values by output name.- Specified by:
getEntryMap
in interfaceDmnDecisionRuleResult
- Returns:
- the values of the decision rule result entries
- See Also:
-
getEntryMapTyped
Description copied from interface:DmnDecisionRuleResult
Returns a map of the typed rule result entry values by output name.- Specified by:
getEntryMapTyped
in interfaceDmnDecisionRuleResult
- Returns:
- the typed values of the decision rule 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
-