N - node typeL - leaf typepublic class MultiLevelIterator<N,L>
extends java.lang.Object
implements java.util.Iterator<L>
| Modifier and Type | Field and Description |
|---|---|
protected int |
idx |
| Constructor and Description |
|---|
MultiLevelIterator(java.util.Iterator<N> rootIterator,
int depth) |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Iterator<?> |
createThisLevelIterator(N currVal,
int resultLevelIndex)
Creates the next level iterator for the current iterator value being
currVal. |
boolean |
hasNext() |
L |
next() |
void |
remove() |
public MultiLevelIterator(java.util.Iterator<N> rootIterator, int depth)
public boolean hasNext()
hasNext in interface java.util.Iterator<L>protected java.util.Iterator<?> createThisLevelIterator(N currVal, int resultLevelIndex)
currVal.currVal - resultLevelIndex - public void remove()
remove in interface java.util.Iterator<L>Copyright © 2002 – 2022 Project Wonder.