Package org.camunda.bpm.dmn.engine.impl
Class DmnDecisionResultImpl
java.lang.Object
org.camunda.bpm.dmn.engine.impl.DmnDecisionResultImpl
- All Implemented Interfaces:
Serializable,Iterable<DmnDecisionResultEntries>,Collection<DmnDecisionResultEntries>,List<DmnDecisionResultEntries>,DmnDecisionResult
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DmnEngineLoggerprotected final List<DmnDecisionResultEntries> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(int index, DmnDecisionResultEntries element) booleanbooleanaddAll(int index, Collection<? extends DmnDecisionResultEntries> c) booleanaddAll(Collection<? extends DmnDecisionResultEntries> c) protected List<DmnDecisionResultEntries>voidclear()<T> List<T>collectEntries(String outputName) Collects the entries for a output name.booleanbooleancontainsAll(Collection<?> c) get(int index) Returns the firstDmnDecisionResultEntries.Returns the entries of all decision results.<T> TReturns 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.Returns the singleDmnDecisionResultEntriesof the result.intbooleanisEmpty()iterator()intlistIterator(int index) remove(int index) booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) set(int index, DmnDecisionResultEntries element) intsize()subList(int fromIndex, int toIndex) Object[]toArray()<T> T[]toArray(T[] a) toString()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
-
DmnDecisionResultImpl
-
-
Method Details
-
getFirstResult
Description copied from interface:DmnDecisionResultReturns the firstDmnDecisionResultEntries.- Specified by:
getFirstResultin interfaceDmnDecisionResult- Returns:
- the first decision result or null if none exits
-
getSingleResult
Description copied from interface:DmnDecisionResultReturns the singleDmnDecisionResultEntriesof the result. Asserts that only one decision result exist.- Specified by:
getSingleResultin interfaceDmnDecisionResult- Returns:
- the single decision result or null if none exists
-
collectEntries
Description copied from interface:DmnDecisionResultCollects the entries for a output name. The list will contain entries for the output name of everyDmnDecisionResultEntries. Note that the list may contains less entries than decision results if an output does not contain a value for the output name.- Specified by:
collectEntriesin interfaceDmnDecisionResult- Type Parameters:
T- the type of the result entry- Parameters:
outputName- the name of the output to collect- Returns:
- the list of collected output values
-
getResultList
Description copied from interface:DmnDecisionResultReturns the entries of all decision results. For every decision result a map of the output names and corresponding entries is returned.- Specified by:
getResultListin interfaceDmnDecisionResult- Returns:
- the list of all entry maps
- See Also:
-
getSingleEntry
public <T> T getSingleEntry()Description copied from interface:DmnDecisionResultReturns the value of the single entry of the decision result. Asserts that only one decision result with a single entry exist.- Specified by:
getSingleEntryin interfaceDmnDecisionResult- 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:DmnDecisionResultReturns the typed value of the single entry of the decision result. Asserts that only one decision result with a single entry exist.- Specified by:
getSingleEntryTypedin interfaceDmnDecisionResult- 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<DmnDecisionResultEntries>- Specified by:
iteratorin interfaceIterable<DmnDecisionResultEntries>- Specified by:
iteratorin interfaceList<DmnDecisionResultEntries>
-
size
public int size()- Specified by:
sizein interfaceCollection<DmnDecisionResultEntries>- Specified by:
sizein interfaceList<DmnDecisionResultEntries>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<DmnDecisionResultEntries>- Specified by:
isEmptyin interfaceList<DmnDecisionResultEntries>
-
get
- Specified by:
getin interfaceList<DmnDecisionResultEntries>
-
contains
- Specified by:
containsin interfaceCollection<DmnDecisionResultEntries>- Specified by:
containsin interfaceList<DmnDecisionResultEntries>
-
toArray
- Specified by:
toArrayin interfaceCollection<DmnDecisionResultEntries>- Specified by:
toArrayin interfaceList<DmnDecisionResultEntries>
-
toArray
public <T> T[] toArray(T[] a) - Specified by:
toArrayin interfaceCollection<DmnDecisionResultEntries>- Specified by:
toArrayin interfaceList<DmnDecisionResultEntries>
-
add
- Specified by:
addin interfaceCollection<DmnDecisionResultEntries>- Specified by:
addin interfaceList<DmnDecisionResultEntries>
-
remove
- Specified by:
removein interfaceCollection<DmnDecisionResultEntries>- Specified by:
removein interfaceList<DmnDecisionResultEntries>
-
containsAll
- Specified by:
containsAllin interfaceCollection<DmnDecisionResultEntries>- Specified by:
containsAllin interfaceList<DmnDecisionResultEntries>
-
addAll
- Specified by:
addAllin interfaceCollection<DmnDecisionResultEntries>- Specified by:
addAllin interfaceList<DmnDecisionResultEntries>
-
addAll
- Specified by:
addAllin interfaceList<DmnDecisionResultEntries>
-
removeAll
- Specified by:
removeAllin interfaceCollection<DmnDecisionResultEntries>- Specified by:
removeAllin interfaceList<DmnDecisionResultEntries>
-
retainAll
- Specified by:
retainAllin interfaceCollection<DmnDecisionResultEntries>- Specified by:
retainAllin interfaceList<DmnDecisionResultEntries>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<DmnDecisionResultEntries>- Specified by:
clearin interfaceList<DmnDecisionResultEntries>
-
set
- Specified by:
setin interfaceList<DmnDecisionResultEntries>
-
add
- Specified by:
addin interfaceList<DmnDecisionResultEntries>
-
remove
- Specified by:
removein interfaceList<DmnDecisionResultEntries>
-
indexOf
- Specified by:
indexOfin interfaceList<DmnDecisionResultEntries>
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<DmnDecisionResultEntries>
-
listIterator
- Specified by:
listIteratorin interfaceList<DmnDecisionResultEntries>
-
listIterator
- Specified by:
listIteratorin interfaceList<DmnDecisionResultEntries>
-
subList
- Specified by:
subListin interfaceList<DmnDecisionResultEntries>
-
toString
-
asUnmodifiableList
-