public class DmnDecisionResultImpl extends Object implements DmnDecisionResult
Modifier and Type | Field and Description |
---|---|
static DmnEngineLogger |
LOG |
protected List<DmnDecisionResultEntries> |
ruleResults |
Constructor and Description |
---|
DmnDecisionResultImpl(List<DmnDecisionResultEntries> 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<DmnDecisionResultEntries> ruleResults
public DmnDecisionResultImpl(List<DmnDecisionResultEntries> ruleResults)
public DmnDecisionResultEntries getFirstResult()
DmnDecisionResult
DmnDecisionResultEntries
.getFirstResult
in interface DmnDecisionResult
public DmnDecisionResultEntries getSingleResult()
DmnDecisionResult
DmnDecisionResultEntries
of the result. Asserts
that only one decision result exist.getSingleResult
in interface DmnDecisionResult
public <T> List<T> collectEntries(String outputName)
DmnDecisionResult
DmnDecisionResultEntries
. Note that the
list may contains less entries than decision results if an output does not
contain a value for the output name.collectEntries
in interface DmnDecisionResult
T
- the type of the result entryoutputName
- the name of the output to collectpublic List<Map<String,Object>> getResultList()
DmnDecisionResult
getResultList
in interface DmnDecisionResult
DmnDecisionResultEntries.getEntryMap()
public <T> T getSingleEntry()
DmnDecisionResult
getSingleEntry
in interface DmnDecisionResult
T
- the type of the result entryDmnDecisionResult.getSingleEntryTyped()
public <T extends org.camunda.bpm.engine.variable.value.TypedValue> T getSingleEntryTyped()
DmnDecisionResult
getSingleEntryTyped
in interface DmnDecisionResult
T
- the type of the result entryDmnDecisionResult.getSingleEntry()
public Iterator<DmnDecisionResultEntries> iterator()
iterator
in interface Iterable<DmnDecisionResultEntries>
iterator
in interface Collection<DmnDecisionResultEntries>
iterator
in interface List<DmnDecisionResultEntries>
public int size()
size
in interface Collection<DmnDecisionResultEntries>
size
in interface List<DmnDecisionResultEntries>
public boolean isEmpty()
isEmpty
in interface Collection<DmnDecisionResultEntries>
isEmpty
in interface List<DmnDecisionResultEntries>
public DmnDecisionResultEntries get(int index)
get
in interface List<DmnDecisionResultEntries>
public boolean contains(Object o)
contains
in interface Collection<DmnDecisionResultEntries>
contains
in interface List<DmnDecisionResultEntries>
public Object[] toArray()
toArray
in interface Collection<DmnDecisionResultEntries>
toArray
in interface List<DmnDecisionResultEntries>
public <T> T[] toArray(T[] a)
toArray
in interface Collection<DmnDecisionResultEntries>
toArray
in interface List<DmnDecisionResultEntries>
public boolean add(DmnDecisionResultEntries e)
add
in interface Collection<DmnDecisionResultEntries>
add
in interface List<DmnDecisionResultEntries>
public boolean remove(Object o)
remove
in interface Collection<DmnDecisionResultEntries>
remove
in interface List<DmnDecisionResultEntries>
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<DmnDecisionResultEntries>
containsAll
in interface List<DmnDecisionResultEntries>
public boolean addAll(Collection<? extends DmnDecisionResultEntries> c)
addAll
in interface Collection<DmnDecisionResultEntries>
addAll
in interface List<DmnDecisionResultEntries>
public boolean addAll(int index, Collection<? extends DmnDecisionResultEntries> c)
addAll
in interface List<DmnDecisionResultEntries>
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<DmnDecisionResultEntries>
removeAll
in interface List<DmnDecisionResultEntries>
public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<DmnDecisionResultEntries>
retainAll
in interface List<DmnDecisionResultEntries>
public void clear()
clear
in interface Collection<DmnDecisionResultEntries>
clear
in interface List<DmnDecisionResultEntries>
public DmnDecisionResultEntries set(int index, DmnDecisionResultEntries element)
set
in interface List<DmnDecisionResultEntries>
public void add(int index, DmnDecisionResultEntries element)
add
in interface List<DmnDecisionResultEntries>
public DmnDecisionResultEntries remove(int index)
remove
in interface List<DmnDecisionResultEntries>
public int indexOf(Object o)
indexOf
in interface List<DmnDecisionResultEntries>
public int lastIndexOf(Object o)
lastIndexOf
in interface List<DmnDecisionResultEntries>
public ListIterator<DmnDecisionResultEntries> listIterator()
listIterator
in interface List<DmnDecisionResultEntries>
public ListIterator<DmnDecisionResultEntries> listIterator(int index)
listIterator
in interface List<DmnDecisionResultEntries>
public List<DmnDecisionResultEntries> subList(int fromIndex, int toIndex)
subList
in interface List<DmnDecisionResultEntries>
protected List<DmnDecisionResultEntries> asUnmodifiableList()
Copyright © 2020. All rights reserved.