org.apache.maven.shared.dependency.tree
Class DependencyTreeInverseIterator

java.lang.Object
  extended by 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

Constructor Summary
DependencyTreeInverseIterator(DependencyNode rootNode)
           
 
Method Summary
 boolean hasNext()
           
 DependencyNode next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DependencyTreeInverseIterator

public DependencyTreeInverseIterator(DependencyNode rootNode)
Method Detail

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.