public class DmnDecisionTableResultImpl extends Object implements DmnDecisionTableResult
Modifier and Type | Field and Description |
---|---|
static DmnEngineLogger |
LOG |
protected List<DmnDecisionRuleResult> |
ruleResults |
Constructor and Description |
---|
DmnDecisionTableResultImpl(List<DmnDecisionRuleResult> ruleResults) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals, hashCode, replaceAll, sort, spliterator
parallelStream, removeIf, stream
public static final DmnEngineLogger LOG
protected final List<DmnDecisionRuleResult> ruleResults
public DmnDecisionTableResultImpl(List<DmnDecisionRuleResult> ruleResults)
public DmnDecisionRuleResult getFirstResult()
DmnDecisionTableResult
DmnDecisionRuleResult
.getFirstResult
in interface DmnDecisionTableResult
public DmnDecisionRuleResult getSingleResult()
DmnDecisionTableResult
DmnDecisionRuleResult
of the result. Which asserts
that only one decision rule result exist.getSingleResult
in interface DmnDecisionTableResult
public <T> List<T> collectEntries(String outputName)
DmnDecisionTableResult
DmnDecisionRuleResult
. Note that the list
may contains less entries than decision rule results if an output does not
contain a value for the output name.collectEntries
in interface DmnDecisionTableResult
T
- the type of the rule result entryoutputName
- the name of the output to collectpublic List<Map<String,Object>> getResultList()
DmnDecisionTableResult
getResultList
in interface DmnDecisionTableResult
DmnDecisionRuleResult.getEntryMap()
public <T> T getSingleEntry()
DmnDecisionTableResult
getSingleEntry
in interface DmnDecisionTableResult
T
- the type of the result entryDmnDecisionTableResult.getSingleEntryTyped()
public <T extends org.camunda.bpm.engine.variable.value.TypedValue> T getSingleEntryTyped()
DmnDecisionTableResult
getSingleEntryTyped
in interface DmnDecisionTableResult
T
- the type of the result entryDmnDecisionTableResult.getSingleEntry()
public Iterator<DmnDecisionRuleResult> iterator()
iterator
in interface Iterable<DmnDecisionRuleResult>
iterator
in interface Collection<DmnDecisionRuleResult>
iterator
in interface List<DmnDecisionRuleResult>
public int size()
size
in interface Collection<DmnDecisionRuleResult>
size
in interface List<DmnDecisionRuleResult>
public boolean isEmpty()
isEmpty
in interface Collection<DmnDecisionRuleResult>
isEmpty
in interface List<DmnDecisionRuleResult>
public DmnDecisionRuleResult get(int index)
get
in interface List<DmnDecisionRuleResult>
public boolean contains(Object o)
contains
in interface Collection<DmnDecisionRuleResult>
contains
in interface List<DmnDecisionRuleResult>
public Object[] toArray()
toArray
in interface Collection<DmnDecisionRuleResult>
toArray
in interface List<DmnDecisionRuleResult>
public <T> T[] toArray(T[] a)
toArray
in interface Collection<DmnDecisionRuleResult>
toArray
in interface List<DmnDecisionRuleResult>
public boolean add(DmnDecisionRuleResult e)
add
in interface Collection<DmnDecisionRuleResult>
add
in interface List<DmnDecisionRuleResult>
public boolean remove(Object o)
remove
in interface Collection<DmnDecisionRuleResult>
remove
in interface List<DmnDecisionRuleResult>
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<DmnDecisionRuleResult>
containsAll
in interface List<DmnDecisionRuleResult>
public boolean addAll(Collection<? extends DmnDecisionRuleResult> c)
addAll
in interface Collection<DmnDecisionRuleResult>
addAll
in interface List<DmnDecisionRuleResult>
public boolean addAll(int index, Collection<? extends DmnDecisionRuleResult> c)
addAll
in interface List<DmnDecisionRuleResult>
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<DmnDecisionRuleResult>
removeAll
in interface List<DmnDecisionRuleResult>
public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<DmnDecisionRuleResult>
retainAll
in interface List<DmnDecisionRuleResult>
public void clear()
clear
in interface Collection<DmnDecisionRuleResult>
clear
in interface List<DmnDecisionRuleResult>
public DmnDecisionRuleResult set(int index, DmnDecisionRuleResult element)
set
in interface List<DmnDecisionRuleResult>
public void add(int index, DmnDecisionRuleResult element)
add
in interface List<DmnDecisionRuleResult>
public DmnDecisionRuleResult remove(int index)
remove
in interface List<DmnDecisionRuleResult>
public int indexOf(Object o)
indexOf
in interface List<DmnDecisionRuleResult>
public int lastIndexOf(Object o)
lastIndexOf
in interface List<DmnDecisionRuleResult>
public ListIterator<DmnDecisionRuleResult> listIterator()
listIterator
in interface List<DmnDecisionRuleResult>
public ListIterator<DmnDecisionRuleResult> listIterator(int index)
listIterator
in interface List<DmnDecisionRuleResult>
public List<DmnDecisionRuleResult> subList(int fromIndex, int toIndex)
subList
in interface List<DmnDecisionRuleResult>
protected List<DmnDecisionRuleResult> asUnmodifiableList()
public static DmnDecisionTableResultImpl wrap(DmnDecisionResult decisionResult)
Copyright © 2022. All rights reserved.