|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.walend.measured.GEBellmanFordTest.BFGEDigraph.WrappingEdgeNodeIterator
Field Summary | |
private IndexedEdgeNodeIterator |
edgeIterator
|
private int |
fromIndex
|
private java.lang.Object |
fromNode
|
private boolean |
nextCalled
|
private IndexedIterator |
nodeIterator
|
private int |
toIndex
|
private java.lang.Object |
toNode
|
Constructor Summary | |
protected |
GEBellmanFordTest.BFGEDigraph.WrappingEdgeNodeIterator()
|
Method Summary | |
private void |
checkState()
|
int |
fromIndex()
Returns the index of the node that his edge begins at. |
java.lang.Object |
fromNode()
Returns the node that his edge begins at. |
boolean |
hasNext()
Returns true if there are more edges in this iterator. |
void |
next()
Advances to the next edge in the iterator. |
void |
remove()
Removes the current edge from the digraph. |
int |
toIndex()
Returns the index of the node that this edge reaches. |
java.lang.Object |
toNode()
Returns the node that this edge reaches. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private IndexedEdgeNodeIterator edgeIterator
private IndexedIterator nodeIterator
private java.lang.Object fromNode
private int fromIndex
private java.lang.Object toNode
private int toIndex
private boolean nextCalled
Constructor Detail |
protected GEBellmanFordTest.BFGEDigraph.WrappingEdgeNodeIterator()
Method Detail |
public boolean hasNext()
hasNext
in interface EdgeNodeIterator
public void next()
next
in interface EdgeNodeIterator
java.util.NoSuchElementException
- if the iterator has nothing left.private void checkState()
public void remove()
remove
in interface EdgeNodeIterator
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.public java.lang.Object fromNode()
fromNode
in interface EdgeNodeIterator
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.public int fromIndex()
IndexedEdgeNodeIterator
fromIndex
in interface IndexedEdgeNodeIterator
public java.lang.Object toNode()
toNode
in interface EdgeNodeIterator
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.public int toIndex()
IndexedEdgeNodeIterator
toIndex
in interface IndexedEdgeNodeIterator
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |