Package org.camunda.bpm.dmn.engine.impl
Class DmnDecisionTableResultImpl
java.lang.Object
org.camunda.bpm.dmn.engine.impl.DmnDecisionTableResultImpl
- All Implemented Interfaces:
Serializable
,Iterable<DmnDecisionRuleResult>
,Collection<DmnDecisionRuleResult>
,List<DmnDecisionRuleResult>
,DmnDecisionTableResult
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final DmnEngineLogger
protected final List<DmnDecisionRuleResult>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(int index, DmnDecisionRuleResult element) boolean
boolean
addAll
(int index, Collection<? extends DmnDecisionRuleResult> c) boolean
addAll
(Collection<? extends DmnDecisionRuleResult> c) protected List<DmnDecisionRuleResult>
void
clear()
<T> List<T>
collectEntries
(String outputName) Collects the entries for a output name.boolean
boolean
containsAll
(Collection<?> c) get
(int index) Returns the firstDmnDecisionRuleResult
.Returns the entries of all decision rule results.<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.Returns the singleDmnDecisionRuleResult
of the result.int
boolean
isEmpty()
iterator()
int
listIterator
(int index) remove
(int index) boolean
boolean
removeAll
(Collection<?> c) boolean
retainAll
(Collection<?> c) set
(int index, DmnDecisionRuleResult element) int
size()
subList
(int fromIndex, int toIndex) Object[]
toArray()
<T> T[]
toArray
(T[] a) toString()
static DmnDecisionTableResultImpl
wrap
(DmnDecisionResult decisionResult) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
Field Details
-
LOG
-
ruleResults
-
-
Constructor Details
-
DmnDecisionTableResultImpl
-
-
Method Details
-
getFirstResult
Description copied from interface:DmnDecisionTableResult
Returns the firstDmnDecisionRuleResult
.- Specified by:
getFirstResult
in interfaceDmnDecisionTableResult
- Returns:
- the first decision rule result or null if none exits
-
getSingleResult
Description copied from interface:DmnDecisionTableResult
Returns the singleDmnDecisionRuleResult
of the result. Which asserts that only one decision rule result exist.- Specified by:
getSingleResult
in interfaceDmnDecisionTableResult
- Returns:
- the single decision rule result or null if none exists
-
collectEntries
Description copied from interface:DmnDecisionTableResult
Collects the entries for a output name. The list will contain entries for the output name of everyDmnDecisionRuleResult
. Note that the list may contains less entries than decision rule results if an output does not contain a value for the output name.- Specified by:
collectEntries
in interfaceDmnDecisionTableResult
- Type Parameters:
T
- the type of the rule result entry- Parameters:
outputName
- the name of the output to collect- Returns:
- the list of collected output values
-
getResultList
Description copied from interface:DmnDecisionTableResult
Returns the entries of all decision rule results. For every decision rule result a map of the output names and corresponding entries is returned.- Specified by:
getResultList
in interfaceDmnDecisionTableResult
- Returns:
- the list of all entry maps
- See Also:
-
getSingleEntry
public <T> T getSingleEntry()Description copied from interface:DmnDecisionTableResult
Returns the value of the single entry of the decision rule result. Asserts that only one decision rule result with a single entry exist.- Specified by:
getSingleEntry
in interfaceDmnDecisionTableResult
- Type Parameters:
T
- the type of the result entry- Returns:
- the value of the single result entry or null if none exists
- See Also:
-
getSingleEntryTyped
Description copied from interface:DmnDecisionTableResult
Returns the typed value of the single entry of the decision rule result. Asserts that only one decision rule result with a single entry exist.- Specified by:
getSingleEntryTyped
in interfaceDmnDecisionTableResult
- 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:
-
iterator
- Specified by:
iterator
in interfaceCollection<DmnDecisionRuleResult>
- Specified by:
iterator
in interfaceIterable<DmnDecisionRuleResult>
- Specified by:
iterator
in interfaceList<DmnDecisionRuleResult>
-
size
public int size()- Specified by:
size
in interfaceCollection<DmnDecisionRuleResult>
- Specified by:
size
in interfaceList<DmnDecisionRuleResult>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<DmnDecisionRuleResult>
- Specified by:
isEmpty
in interfaceList<DmnDecisionRuleResult>
-
get
- Specified by:
get
in interfaceList<DmnDecisionRuleResult>
-
contains
- Specified by:
contains
in interfaceCollection<DmnDecisionRuleResult>
- Specified by:
contains
in interfaceList<DmnDecisionRuleResult>
-
toArray
- Specified by:
toArray
in interfaceCollection<DmnDecisionRuleResult>
- Specified by:
toArray
in interfaceList<DmnDecisionRuleResult>
-
toArray
public <T> T[] toArray(T[] a) - Specified by:
toArray
in interfaceCollection<DmnDecisionRuleResult>
- Specified by:
toArray
in interfaceList<DmnDecisionRuleResult>
-
add
- Specified by:
add
in interfaceCollection<DmnDecisionRuleResult>
- Specified by:
add
in interfaceList<DmnDecisionRuleResult>
-
remove
- Specified by:
remove
in interfaceCollection<DmnDecisionRuleResult>
- Specified by:
remove
in interfaceList<DmnDecisionRuleResult>
-
containsAll
- Specified by:
containsAll
in interfaceCollection<DmnDecisionRuleResult>
- Specified by:
containsAll
in interfaceList<DmnDecisionRuleResult>
-
addAll
- Specified by:
addAll
in interfaceCollection<DmnDecisionRuleResult>
- Specified by:
addAll
in interfaceList<DmnDecisionRuleResult>
-
addAll
- Specified by:
addAll
in interfaceList<DmnDecisionRuleResult>
-
removeAll
- Specified by:
removeAll
in interfaceCollection<DmnDecisionRuleResult>
- Specified by:
removeAll
in interfaceList<DmnDecisionRuleResult>
-
retainAll
- Specified by:
retainAll
in interfaceCollection<DmnDecisionRuleResult>
- Specified by:
retainAll
in interfaceList<DmnDecisionRuleResult>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<DmnDecisionRuleResult>
- Specified by:
clear
in interfaceList<DmnDecisionRuleResult>
-
set
- Specified by:
set
in interfaceList<DmnDecisionRuleResult>
-
add
- Specified by:
add
in interfaceList<DmnDecisionRuleResult>
-
remove
- Specified by:
remove
in interfaceList<DmnDecisionRuleResult>
-
indexOf
- Specified by:
indexOf
in interfaceList<DmnDecisionRuleResult>
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<DmnDecisionRuleResult>
-
listIterator
- Specified by:
listIterator
in interfaceList<DmnDecisionRuleResult>
-
listIterator
- Specified by:
listIterator
in interfaceList<DmnDecisionRuleResult>
-
subList
- Specified by:
subList
in interfaceList<DmnDecisionRuleResult>
-
toString
-
asUnmodifiableList
-
wrap
-