org.apache.maven.shared.dependency.tree
Class DependencyTreeInverseIterator
java.lang.Object
org.apache.maven.shared.dependency.tree.DependencyTreeInverseIterator
- All Implemented Interfaces:
- Iterator<DependencyNode>
public class DependencyTreeInverseIterator
- extends Object
- implements Iterator<DependencyNode>
Iterator
for DependencyNode
implementing a traversal from leaves to root.
TODO DependencyTreeInverseIterator(DependencyNode)
is costly,
a better implementation would move the cost to next()
- Version:
- $Id: DependencyTreeInverseIterator.java 1100703 2011-05-08 08:27:33Z hboutemy $
- Author:
- Carlos Sanchez
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DependencyTreeInverseIterator
public DependencyTreeInverseIterator(DependencyNode rootNode)
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator<DependencyNode>
next
public DependencyNode next()
- Specified by:
next
in interface Iterator<DependencyNode>
remove
public void remove()
- Specified by:
remove
in interface Iterator<DependencyNode>
- Throws:
UnsupportedOperationException
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.