org.jdesktop.swingx.tree
Class TreeUtilities.PreorderNodeEnumeration<M extends TreeNode>
java.lang.Object
org.jdesktop.swingx.tree.TreeUtilities.PreorderNodeEnumeration<M>
- All Implemented Interfaces:
- Enumeration<M>
- Enclosing class:
- TreeUtilities
public static class TreeUtilities.PreorderNodeEnumeration<M extends TreeNode>
- extends Object
- implements Enumeration<M>
Implementation of a preorder traversal of a subtree with nodes of type TreeNode.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
stack
protected Deque<Enumeration<M extends TreeNode>> stack
TreeUtilities.PreorderNodeEnumeration
public TreeUtilities.PreorderNodeEnumeration(M rootNode)
hasMoreElements
public boolean hasMoreElements()
- Specified by:
hasMoreElements
in interface Enumeration<M extends TreeNode>
nextElement
public M nextElement()
- Specified by:
nextElement
in interface Enumeration<M extends TreeNode>
Copyright © 2012. All Rights Reserved.