public abstract class ForestParentChildrenListClosure<T> extends Object implements ForestParentChildrenClosure<T,List<T>>
This is a utility implementation of ForestParentChildrenClosure
that collects the results
of processing sub-rows into a list. This list is then passed to ForestParentChildrenClosure.visitRow(com.almworks.jira.structure.api.forest.raw.ForestIterationControl, long, com.almworks.integers.LongList, C)
as a children carry.
Note that the list passed to visitRow()
is in the reverse order, that is,
the first result is for the last child row.
Constructor and Description |
---|
ForestParentChildrenListClosure() |
Modifier and Type | Method and Description |
---|---|
List<T> |
combine(ForestIterationControl fold,
T value,
List<T> carry)
Used to combine values returned by {#visitRow} calls to every sub-row of a single parent.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
visitRow
public List<T> combine(@NotNull ForestIterationControl fold, @NotNull T value, @Nullable List<T> carry)
ForestParentChildrenClosure
combine
in interface ForestParentChildrenClosure<T,List<T>>
fold
- fold controlvalue
- the value returned by visitRow()
carry
- the carry value returned by previous call to combine()
on a result of processing the successor row under the same parent row, or null
for the first callCopyright © 2024 Tempo Software. All Rights Reserved.