public static class TreeUtilities.PostorderNodeEnumeration<M extends TreeNode> extends Object implements Enumeration<M>
| Modifier and Type | Field and Description |
|---|---|
protected Enumeration<M> |
children |
protected M |
root |
protected Enumeration<M> |
subtree |
| Constructor and Description |
|---|
PostorderNodeEnumeration(M rootNode) |
| Modifier and Type | Method and Description |
|---|---|
protected TreeUtilities.PostorderNodeEnumeration<M> |
createSubTree(M node)
Creates and returns a PostorderEnumeration on the given node.
|
protected Enumeration<M> |
getChildren(M node)
Returns an enumeration on the children of the root node.
|
boolean |
hasMoreElements() |
M |
nextElement() |
protected Enumeration<M extends TreeNode> children
protected Enumeration<M extends TreeNode> subtree
public PostorderNodeEnumeration(M rootNode)
public boolean hasMoreElements()
hasMoreElements in interface Enumeration<M extends TreeNode>public M nextElement()
nextElement in interface Enumeration<M extends TreeNode>protected TreeUtilities.PostorderNodeEnumeration<M> createSubTree(M node)
node - the node to create the PostorderEnumeration forprotected Enumeration<M> getChildren(M node)
node - Copyright © 2017. All Rights Reserved.