public static class TreeUtilities.PreorderNodeEnumeration<M extends TreeNode> extends Object implements Enumeration<M>
| Modifier and Type | Field and Description |
|---|---|
protected Deque<Enumeration<M>> |
stack |
| Constructor and Description |
|---|
PreorderNodeEnumeration(M rootNode) |
| Modifier and Type | Method and Description |
|---|---|
protected Enumeration<M> |
getChildren(M node) |
boolean |
hasMoreElements() |
M |
nextElement() |
protected Deque<Enumeration<M extends TreeNode>> stack
public PreorderNodeEnumeration(M rootNode)
public boolean hasMoreElements()
hasMoreElements in interface Enumeration<M extends TreeNode>public M nextElement()
nextElement in interface Enumeration<M extends TreeNode>protected Enumeration<M> getChildren(M node)
Copyright © 2017. All Rights Reserved.