com.phoenixst.plexus
Class ObservableGraphWrapper.ObservableTraverserWrapper

java.lang.Object
com.phoenixst.plexus.GraphWrapper.TraverserWrapper
com.phoenixst.plexus.ObservableGraphWrapper.ObservableTraverserWrapper
- All Implemented Interfaces:
- java.util.Iterator, Traverser
- Enclosing class:
- ObservableGraphWrapper
- private class ObservableGraphWrapper.ObservableTraverserWrapper
- extends GraphWrapper.TraverserWrapper
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
currentNode
protected java.lang.Object currentNode
isCurrentValid
private boolean isCurrentValid
ObservableGraphWrapper.ObservableTraverserWrapper
protected ObservableGraphWrapper.ObservableTraverserWrapper(Traverser i)
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