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


Field Summary
private  java.lang.Object fromNode
           
private  java.lang.Object headNode
           
private  boolean nextCalled
           
private  int tailIndex
           
private  java.lang.Object tailNode
           
private  java.lang.Object toNode
           
 
Constructor Summary
protected AbstractDelegateDigraphOfGEPaths.DigraphGEPath.PathNodeIterator(java.lang.Object headNode, java.lang.Object tailNode)
           
 
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
 

Field Detail

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
Constructor Detail

AbstractDelegateDigraphOfGEPaths.DigraphGEPath.PathNodeIterator

protected AbstractDelegateDigraphOfGEPaths.DigraphGEPath.PathNodeIterator(java.lang.Object headNode,
                                                                          java.lang.Object tailNode)
                                                                   throws NodeMissingException
Method Detail

hasNext

public boolean hasNext()
Returns true if there are more edges in this iterator.

Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
Advances to the next edge in the iterator.

Specified by:
next in 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:
remove in 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