Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.phoenixst.plexus
Class ObservableGraphWrapper.ObservableTraverserWrapper  view ObservableGraphWrapper.ObservableTraverserWrapper download ObservableGraphWrapper.ObservableTraverserWrapper.java

java.lang.Object
  extended bycom.phoenixst.plexus.GraphWrapper.TraverserWrapper
      extended bycom.phoenixst.plexus.ObservableGraphWrapper.ObservableTraverserWrapper
All Implemented Interfaces:
java.util.Iterator, Traverser
Enclosing class:
ObservableGraphWrapper

private class ObservableGraphWrapper.ObservableTraverserWrapper
extends GraphWrapper.TraverserWrapper


Field Summary
protected  java.lang.Object currentNode
           
private  boolean isCurrentValid
           
 
Fields inherited from class com.phoenixst.plexus.GraphWrapper.TraverserWrapper
i
 
Constructor Summary
protected ObservableGraphWrapper.ObservableTraverserWrapper(Traverser i)
           
 
Method Summary
 java.lang.Object next()
          Obtain the next element in the collection.
 void remove()
          Remove from the underlying collection the last element returned by next (optional operation).
 void removeEdge()
          Removes from the underlying Graph the Edge that would be returned by GraphWrapper.TraverserWrapper.getEdge() 55 (optional operation).
 
Methods inherited from class com.phoenixst.plexus.GraphWrapper.TraverserWrapper
getEdge, getOtherEndpoint, hasNext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentNode

protected java.lang.Object currentNode

isCurrentValid

private boolean isCurrentValid
Constructor Detail

ObservableGraphWrapper.ObservableTraverserWrapper

protected ObservableGraphWrapper.ObservableTraverserWrapper(Traverser i)
Method Detail

next

public java.lang.Object next()
Description copied from interface: java.util.Iterator
Obtain the next element in the collection.

Specified by:
next in interface java.util.Iterator
Overrides:
next in class GraphWrapper.TraverserWrapper

remove

public void remove()
Description copied from interface: java.util.Iterator
Remove from the underlying collection the last element returned by next (optional operation). This method can be called only once after each call to next(). It does not affect what will be returned by subsequent calls to next.

Specified by:
remove in interface java.util.Iterator
Overrides:
remove in class GraphWrapper.TraverserWrapper

removeEdge

public void removeEdge()
Description copied from interface: Traverser
Removes from the underlying Graph the Edge that would be returned by Traverser.getEdge() 55 (optional operation). If no edge was traversed (as in the root of a breadth first search), this method throws a NoSuchElementException. This method can be called only once per call to Iterator.next()>Iterator.next() 55 . The behavior of a traverser is unspecified if the underlying graph structure is modified while the traversal is in progress in any way other than by calling this method or Iterator.remove()>Iterator.remove() 55 .

Specified by:
removeEdge in interface Traverser
Overrides:
removeEdge in class GraphWrapper.TraverserWrapper