net.walend.digraph.path
Class AbstractDelegateDigraphOfGEPaths.DigraphGEPath.PathNodeIterator
java.lang.Object
  |
  +--net.walend.digraph.path.AbstractDelegateDigraphOfGEPaths.DigraphGEPath.PathNodeIterator
- All Implemented Interfaces: 
- java.util.Iterator
- Enclosing class:
- AbstractDelegateDigraphOfGEPaths.DigraphGEPath
- private class AbstractDelegateDigraphOfGEPaths.DigraphGEPath.PathNodeIterator- extends java.lang.Object- implements java.util.Iterator
 
 
| Method Summary | 
| private  void | checkNextCalled()
 | 
|  boolean | hasNext()Returns true if there are more edges in this iterator.
 | 
|  java.lang.Object | next()Advances to the next edge in the iterator.
 | 
|  void | remove()Removes the current edge from the digraph.
 | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
headNode
private java.lang.Object headNode
fromNode
private java.lang.Object fromNode
toNode
private java.lang.Object toNode
tailNode
private java.lang.Object tailNode
tailIndex
private int tailIndex
nextCalled
private boolean nextCalled
AbstractDelegateDigraphOfGEPaths.DigraphGEPath.PathNodeIterator
protected AbstractDelegateDigraphOfGEPaths.DigraphGEPath.PathNodeIterator(java.lang.Object headNode,
                                                                          java.lang.Object tailNode)
                                                                   throws NodeMissingException
hasNext
public boolean hasNext()
- Returns true if there are more edges in this iterator.
 
- 
- Specified by:
- hasNextin interface- java.util.Iterator
 
- 
 
next
public java.lang.Object next()
- Advances to the next edge in the iterator.
 
- 
- Specified by:
- nextin interface- java.util.Iterator
 
- 
- Throws:
- java.util.NoSuchElementException- if the iterator has nothing left.
 
remove
public void remove()
- Removes the current edge from the digraph.
 
- 
- Specified by:
- removein interface- java.util.Iterator
 
- 
- Throws:
- java.lang.UnsupportedOperationException- if the digraph is immutable.
- java.lang.IllegalStateException- if the next method has not yet been called, or the remove method has already been called after the last call to the next method.
 
checkNextCalled
private void checkNextCalled()
- 
 
- 
 
Copyright (c) 2001, 2002, David Walend