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
Modifier and TypeFieldDescriptionstatic final DmnEngineLogger
protected final List<DmnDecisionResultEntries>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(int index, DmnDecisionResultEntries element) boolean
boolean
addAll
(int index, Collection<? extends DmnDecisionResultEntries> c) boolean
addAll
(Collection<? extends DmnDecisionResultEntries> c) protected List<DmnDecisionResultEntries>
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 firstDmnDecisionResultEntries
.Returns the entries of all decision results.<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.Returns the singleDmnDecisionResultEntries
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, DmnDecisionResultEntries element) int
size()
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, 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
-
DmnDecisionResultImpl
-
-
Method Details
-
getFirstResult
Description copied from interface:DmnDecisionResult
Returns the firstDmnDecisionResultEntries
.- Specified by:
getFirstResult
in interfaceDmnDecisionResult
- Returns:
- the first decision result or null if none exits
-
getSingleResult
Description copied from interface:DmnDecisionResult
Returns the singleDmnDecisionResultEntries
of the result. Asserts that only one decision result exist.- Specified by:
getSingleResult
in interfaceDmnDecisionResult
- Returns:
- the single decision result or null if none exists
-
collectEntries
Description copied from interface:DmnDecisionResult
Collects 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:
collectEntries
in 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:DmnDecisionResult
Returns the entries of all decision results. For every decision result a map of the output names and corresponding entries is returned.- Specified by:
getResultList
in interfaceDmnDecisionResult
- Returns:
- the list of all entry maps
- See Also:
-
getSingleEntry
public <T> T getSingleEntry()Description copied from interface:DmnDecisionResult
Returns the value of the single entry of the decision result. Asserts that only one decision result with a single entry exist.- Specified by:
getSingleEntry
in 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:DmnDecisionResult
Returns the typed value of the single entry of the decision result. Asserts that only one decision result with a single entry exist.- Specified by:
getSingleEntryTyped
in 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:
iterator
in interfaceCollection<DmnDecisionResultEntries>
- Specified by:
iterator
in interfaceIterable<DmnDecisionResultEntries>
- Specified by:
iterator
in interfaceList<DmnDecisionResultEntries>
-
size
public int size()- Specified by:
size
in interfaceCollection<DmnDecisionResultEntries>
- Specified by:
size
in interfaceList<DmnDecisionResultEntries>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<DmnDecisionResultEntries>
- Specified by:
isEmpty
in interfaceList<DmnDecisionResultEntries>
-
get
- Specified by:
get
in interfaceList<DmnDecisionResultEntries>
-
contains
- Specified by:
contains
in interfaceCollection<DmnDecisionResultEntries>
- Specified by:
contains
in interfaceList<DmnDecisionResultEntries>
-
toArray
- Specified by:
toArray
in interfaceCollection<DmnDecisionResultEntries>
- Specified by:
toArray
in interfaceList<DmnDecisionResultEntries>
-
toArray
public <T> T[] toArray(T[] a) - Specified by:
toArray
in interfaceCollection<DmnDecisionResultEntries>
- Specified by:
toArray
in interfaceList<DmnDecisionResultEntries>
-
add
- Specified by:
add
in interfaceCollection<DmnDecisionResultEntries>
- Specified by:
add
in interfaceList<DmnDecisionResultEntries>
-
remove
- Specified by:
remove
in interfaceCollection<DmnDecisionResultEntries>
- Specified by:
remove
in interfaceList<DmnDecisionResultEntries>
-
containsAll
- Specified by:
containsAll
in interfaceCollection<DmnDecisionResultEntries>
- Specified by:
containsAll
in interfaceList<DmnDecisionResultEntries>
-
addAll
- Specified by:
addAll
in interfaceCollection<DmnDecisionResultEntries>
- Specified by:
addAll
in interfaceList<DmnDecisionResultEntries>
-
addAll
- Specified by:
addAll
in interfaceList<DmnDecisionResultEntries>
-
removeAll
- Specified by:
removeAll
in interfaceCollection<DmnDecisionResultEntries>
- Specified by:
removeAll
in interfaceList<DmnDecisionResultEntries>
-
retainAll
- Specified by:
retainAll
in interfaceCollection<DmnDecisionResultEntries>
- Specified by:
retainAll
in interfaceList<DmnDecisionResultEntries>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<DmnDecisionResultEntries>
- Specified by:
clear
in interfaceList<DmnDecisionResultEntries>
-
set
- Specified by:
set
in interfaceList<DmnDecisionResultEntries>
-
add
- Specified by:
add
in interfaceList<DmnDecisionResultEntries>
-
remove
- Specified by:
remove
in interfaceList<DmnDecisionResultEntries>
-
indexOf
- Specified by:
indexOf
in interfaceList<DmnDecisionResultEntries>
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<DmnDecisionResultEntries>
-
listIterator
- Specified by:
listIterator
in interfaceList<DmnDecisionResultEntries>
-
listIterator
- Specified by:
listIterator
in interfaceList<DmnDecisionResultEntries>
-
subList
- Specified by:
subList
in interfaceList<DmnDecisionResultEntries>
-
toString
-
asUnmodifiableList
-