public interface ForestScanControl extends ForestIterationControl
Forest.scanDownwards(com.almworks.jira.structure.api.forest.raw.ForestScanner)
control the iteration and receive additional information
about the current position. Using methods provided by this class provides linear-speed iteration in many cases.Modifier and Type | Method and Description |
---|---|
long |
getParent() |
int |
getParentIndex() |
IntList |
getParentPathIndexes() |
LongList |
getSubtreeRows() |
int |
skipParentSubtree(int depth)
Skips the rest of the subtree rooted at one of the ancestor rows.
|
int |
skipSubtree()
Skips the subtree rooted at the current row.
|
getDepth, getForest, getIndex
cancel
long getParent()
int getParentIndex()
int skipSubtree()
Forest.getSubtreeEnd(int)
int skipParentSubtree(int depth)
depth
- the depth of the ancestor, must be equal or less than the depth of the current row. When depth
is equal to the current row's depth, the result is equal to skipSubtree()
. If depth
is -1
,
iteration skips to the end of the forest (thus ending the iteration).LongList getSubtreeRows()
IntList getParentPathIndexes()
Copyright © 2024 Tempo Software. All Rights Reserved.