final class TreeNodeChildrenEnumerator extends Object implements Enumeration<TreeNode>
Modifier and Type | Field and Description |
---|---|
private TreeNode |
currentChild
the current child we are working on
|
Constructor and Description |
---|
TreeNodeChildrenEnumerator(TreeNode node)
Provides iteration over a list of children tree nodes
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasMoreElements()
any elements left?
|
TreeNode |
nextElement()
returns the next element in the list iterator
|
private TreeNode currentChild
TreeNodeChildrenEnumerator(TreeNode node)
node
- Root of the tree to iterate over.public boolean hasMoreElements()
hasMoreElements
in interface Enumeration<TreeNode>
public TreeNode nextElement()
nextElement
in interface Enumeration<TreeNode>