Package dsa.lab06.solutions
Class BinaryTree.NodeIterator<Item>
java.lang.Object
dsa.lab06.solutions.BinaryTree.NodeIterator<Item>
- All Implemented Interfaces:
Iterator<BinaryTree.Node<Item>>
- Enclosing class:
BinaryTree<Item>
public static class BinaryTree.NodeIterator<Item>
extends Object
implements Iterator<BinaryTree.Node<Item>>
-
Constructor Summary
ConstructorsConstructorDescriptionNodeIterator
(BinaryTree<Item> tree, BinaryTree.IterationOrder order) Construct an iterator over the nodes in a binary tree. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
NodeIterator
Construct an iterator over the nodes in a binary tree.- Parameters:
tree
- the binary treeorder
- the order nodes should be iterated in
-
-
Method Details