public class ExecutionTreeBfsIterator extends Object implements Iterator<ExecutionTreeNode>
ExecutionTree
using breadth-first searchModifier and Type | Field and Description |
---|---|
protected LinkedList<ExecutionTreeNode> |
flattenedList |
protected Iterator<ExecutionTreeNode> |
flattenedListIterator |
protected boolean |
reverseOrder |
protected ExecutionTreeNode |
rootNode |
Constructor and Description |
---|
ExecutionTreeBfsIterator(ExecutionTreeNode executionTree) |
ExecutionTreeBfsIterator(ExecutionTreeNode rootNode,
boolean reverseOrder) |
Modifier and Type | Method and Description |
---|---|
protected void |
flattenTree() |
boolean |
hasNext() |
ExecutionTreeNode |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
protected ExecutionTreeNode rootNode
protected boolean reverseOrder
protected LinkedList<ExecutionTreeNode> flattenedList
protected Iterator<ExecutionTreeNode> flattenedListIterator
public ExecutionTreeBfsIterator(ExecutionTreeNode executionTree)
public ExecutionTreeBfsIterator(ExecutionTreeNode rootNode, boolean reverseOrder)
protected void flattenTree()
public boolean hasNext()
hasNext
in interface Iterator<ExecutionTreeNode>
public ExecutionTreeNode next()
next
in interface Iterator<ExecutionTreeNode>
public void remove()
remove
in interface Iterator<ExecutionTreeNode>
Copyright © 2017 Flowable. All rights reserved.