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) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(DmnDecisionRuleResult e) |
void |
add(int index,
DmnDecisionRuleResult element) |
boolean |
addAll(Collection<? extends DmnDecisionRuleResult> c) |
boolean |
addAll(int index,
Collection<? extends DmnDecisionRuleResult> c) |
protected List<DmnDecisionRuleResult> |
asUnmodifiableList() |
void |
clear() |
<T> List<T> |
collectEntries(String outputName)
Collects the entries for a output name.
|
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
DmnDecisionRuleResult |
get(int index) |
DmnDecisionRuleResult |
getFirstResult()
Returns the first
DmnDecisionRuleResult . |
List<Map<String,Object>> |
getResultList()
Returns the entries of all decision rule results.
|
<T> T |
getSingleEntry()
Returns the value of the single entry of the decision rule result.
|
<T extends org.camunda.bpm.engine.variable.value.TypedValue> |
getSingleEntryTyped()
Returns the typed value of the single entry of the decision rule result.
|
DmnDecisionRuleResult |
getSingleResult()
Returns the single
DmnDecisionRuleResult of the result. |
int |
indexOf(Object o) |
boolean |
isEmpty() |
Iterator<DmnDecisionRuleResult> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<DmnDecisionRuleResult> |
listIterator() |
ListIterator<DmnDecisionRuleResult> |
listIterator(int index) |
DmnDecisionRuleResult |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
DmnDecisionRuleResult |
set(int index,
DmnDecisionRuleResult element) |
int |
size() |
List<DmnDecisionRuleResult> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
String |
toString() |
static DmnDecisionTableResultImpl |
wrap(DmnDecisionResult decisionResult) |
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 © 2017. All rights reserved.