T
- A tree itemabstract static class ProgramPage.AbstractTreeIterator<T> extends Object implements Iterator<T>
Modifier and Type | Field and Description |
---|---|
private Boolean |
_hasNext |
protected Queue<Iterator<T>> |
_nodeIterators |
Constructor and Description |
---|
AbstractTreeIterator(Collection<? extends T> children) |
AbstractTreeIterator(Iterator<T> iterator) |
Modifier and Type | Method and Description |
---|---|
private Iterator<T> |
_getOrUpdateHead() |
private Iterator<T> |
_updateHead() |
private static <T> Iterator<T> |
handleConstructorChildren(Collection<? extends T> children) |
boolean |
hasNext() |
T |
next() |
protected abstract Iterator<T> |
provideChildIterator(T next) |
Stream<T> |
stream() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining, remove
protected final Queue<Iterator<T>> _nodeIterators
AbstractTreeIterator(Iterator<T> iterator)
AbstractTreeIterator(Collection<? extends T> children)
private static <T> Iterator<T> handleConstructorChildren(Collection<? extends T> children)
protected abstract Iterator<T> provideChildIterator(T next)
private Iterator<T> _getOrUpdateHead()
private Iterator<T> _updateHead()