Plexus v0.13.1

com.phoenixst.plexus.util
Class TraverserAdjacentNodeIteratorAdapter

java.lang.Object
  extended by com.phoenixst.plexus.util.TraverserAdjacentNodeIteratorAdapter
All Implemented Interfaces:
Iterator

public class TraverserAdjacentNodeIteratorAdapter
extends Object
implements Iterator

This class wraps a Traverser, presenting an Iterator over adjacent nodes. This differs from a TraverserNodeIteratorAdapter in that remove() delegates to Traverser.removeEdge().

Since:
1.0
Version:
$Revision: 1.4 $
Author:
Ray A. Conner

Constructor Summary
TraverserAdjacentNodeIteratorAdapter(Traverser t)
          Creates a new TraverserAdjacentNodeIteratorAdapter.
 
Method Summary
 boolean hasNext()
           
 Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TraverserAdjacentNodeIteratorAdapter

public TraverserAdjacentNodeIteratorAdapter(Traverser t)
Creates a new TraverserAdjacentNodeIteratorAdapter.

Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator

next

public Object next()
Specified by:
next in interface Iterator

remove

public void remove()
Specified by:
remove in interface Iterator

Plexus v0.13.1

See the Plexus project home, hosted by SourceForge.
Copyright ? 1994-2006, by Phoenix Software Technologists, Inc. and others. All Rights Reserved. Use is subject to license terms.