net.walend.digraph.path
Class AbstractDelegateDigraphOfCEPaths.DigraphCEPath.PathNodeIterator
java.lang.Object
|
+--net.walend.digraph.path.AbstractDelegateDigraphOfCEPaths.DigraphCEPath.PathNodeIterator
- All Implemented Interfaces:
- java.util.Iterator
- Enclosing class:
- AbstractDelegateDigraphOfCEPaths.DigraphCEPath
- private class AbstractDelegateDigraphOfCEPaths.DigraphCEPath.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
AbstractDelegateDigraphOfCEPaths.DigraphCEPath.PathNodeIterator
protected AbstractDelegateDigraphOfCEPaths.DigraphCEPath.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:
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