public class IndexedForest extends Object
Constructor and Description |
---|
IndexedForest(Forest forest) |
Modifier and Type | Method and Description |
---|---|
IntIterator |
children(int idx)
Returns an iterator that provides indexes of all direct children at index idx.
|
LongList |
childrenRows(int idx)
Returns a list of children rows at index idx.
|
int |
depth(int idx) |
int |
firstChild(int idx)
Returns the index of the first child under [idx].
|
Forest |
getForest() |
int |
nextSibling(int idx) |
int |
parent(int idx) |
int |
root(int idx) |
IntIterator |
roots() |
long |
row(int idx) |
LongIterator |
rows(IntIterator indices) |
int |
size() |
int |
subtreeEnd(int idx) |
public IndexedForest(Forest forest)
public int subtreeEnd(int idx)
public int parent(int idx)
@NotNull public IntIterator children(int idx)
@NotNull public IntIterator roots()
public LongList childrenRows(int idx)
public int firstChild(int idx)
public int nextSibling(int idx)
public int depth(int idx)
public long row(int idx)
public LongIterator rows(IntIterator indices)
public int size()
public Forest getForest()
public int root(int idx)
Copyright © 2024 Tempo Software. All Rights Reserved.