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
FieldsModifier and TypeFieldDescriptionstatic final DmnEngineLoggerprotected final List<DmnDecisionRuleResult> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(int index, DmnDecisionRuleResult element) booleanbooleanaddAll(int index, Collection<? extends DmnDecisionRuleResult> c) booleanaddAll(Collection<? extends DmnDecisionRuleResult> c) protected List<DmnDecisionRuleResult>voidclear()<T> List<T>collectEntries(String outputName) Collects the entries for a output name.booleanbooleancontainsAll(Collection<?> c) get(int index) Returns the firstDmnDecisionRuleResult.Returns the entries of all decision rule results.<T> TReturns 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 singleDmnDecisionRuleResultof the result.intbooleanisEmpty()iterator()intlistIterator(int index) remove(int index) booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) set(int index, DmnDecisionRuleResult element) intsize()subList(int fromIndex, int toIndex) Object[]toArray()<T> T[]toArray(T[] a) toString()static DmnDecisionTableResultImplwrap(DmnDecisionResult decisionResult) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods 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:DmnDecisionTableResultReturns the firstDmnDecisionRuleResult.- Specified by:
getFirstResultin interfaceDmnDecisionTableResult- Returns:
- the first decision rule result or null if none exits
-
getSingleResult
Description copied from interface:DmnDecisionTableResultReturns the singleDmnDecisionRuleResultof the result. Which asserts that only one decision rule result exist.- Specified by:
getSingleResultin interfaceDmnDecisionTableResult- Returns:
- the single decision rule result or null if none exists
-
collectEntries
Description copied from interface:DmnDecisionTableResultCollects 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:
collectEntriesin 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:DmnDecisionTableResultReturns 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:
getResultListin interfaceDmnDecisionTableResult- Returns:
- the list of all entry maps
- See Also:
-
getSingleEntry
public <T> T getSingleEntry()Description copied from interface:DmnDecisionTableResultReturns 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:
getSingleEntryin 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:DmnDecisionTableResultReturns 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:
getSingleEntryTypedin 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:
iteratorin interfaceCollection<DmnDecisionRuleResult>- Specified by:
iteratorin interfaceIterable<DmnDecisionRuleResult>- Specified by:
iteratorin interfaceList<DmnDecisionRuleResult>
-
size
public int size()- Specified by:
sizein interfaceCollection<DmnDecisionRuleResult>- Specified by:
sizein interfaceList<DmnDecisionRuleResult>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<DmnDecisionRuleResult>- Specified by:
isEmptyin interfaceList<DmnDecisionRuleResult>
-
get
- Specified by:
getin interfaceList<DmnDecisionRuleResult>
-
contains
- Specified by:
containsin interfaceCollection<DmnDecisionRuleResult>- Specified by:
containsin interfaceList<DmnDecisionRuleResult>
-
toArray
- Specified by:
toArrayin interfaceCollection<DmnDecisionRuleResult>- Specified by:
toArrayin interfaceList<DmnDecisionRuleResult>
-
toArray
public <T> T[] toArray(T[] a) - Specified by:
toArrayin interfaceCollection<DmnDecisionRuleResult>- Specified by:
toArrayin interfaceList<DmnDecisionRuleResult>
-
add
- Specified by:
addin interfaceCollection<DmnDecisionRuleResult>- Specified by:
addin interfaceList<DmnDecisionRuleResult>
-
remove
- Specified by:
removein interfaceCollection<DmnDecisionRuleResult>- Specified by:
removein interfaceList<DmnDecisionRuleResult>
-
containsAll
- Specified by:
containsAllin interfaceCollection<DmnDecisionRuleResult>- Specified by:
containsAllin interfaceList<DmnDecisionRuleResult>
-
addAll
- Specified by:
addAllin interfaceCollection<DmnDecisionRuleResult>- Specified by:
addAllin interfaceList<DmnDecisionRuleResult>
-
addAll
- Specified by:
addAllin interfaceList<DmnDecisionRuleResult>
-
removeAll
- Specified by:
removeAllin interfaceCollection<DmnDecisionRuleResult>- Specified by:
removeAllin interfaceList<DmnDecisionRuleResult>
-
retainAll
- Specified by:
retainAllin interfaceCollection<DmnDecisionRuleResult>- Specified by:
retainAllin interfaceList<DmnDecisionRuleResult>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<DmnDecisionRuleResult>- Specified by:
clearin interfaceList<DmnDecisionRuleResult>
-
set
- Specified by:
setin interfaceList<DmnDecisionRuleResult>
-
add
- Specified by:
addin interfaceList<DmnDecisionRuleResult>
-
remove
- Specified by:
removein interfaceList<DmnDecisionRuleResult>
-
indexOf
- Specified by:
indexOfin interfaceList<DmnDecisionRuleResult>
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<DmnDecisionRuleResult>
-
listIterator
- Specified by:
listIteratorin interfaceList<DmnDecisionRuleResult>
-
listIterator
- Specified by:
listIteratorin interfaceList<DmnDecisionRuleResult>
-
subList
- Specified by:
subListin interfaceList<DmnDecisionRuleResult>
-
toString
-
asUnmodifiableList
-
wrap
-