|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcage.NativeEdgeIterator
public class NativeEdgeIterator
Returned by a NativeEmbeddableGraph as an iterator over its edges.
| Constructor Summary | |
|---|---|
NativeEdgeIterator()
|
|
| Method Summary | |
|---|---|
protected void |
finalize()
Lets the native code run its finalization first and then just call
super.finalize(). |
boolean |
hasNext()
Returns true if the iteration has more edges. |
java.lang.Object |
next()
Returns the next edge in the iteration. |
int |
nextEdge()
Returns the next edge in the iteration. |
void |
remove()
Throws UnsupportedOperationException because edges can't
be removed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NativeEdgeIterator()
| Method Detail |
|---|
public boolean hasNext()
hasNext in interface java.util.Iterator
public java.lang.Object next()
throws java.util.NoSuchElementException
hasNext() method returns false will
return each element in the underlying collection exactly once.
next in interface java.util.IteratorMutableInteger.
java.util.NoSuchElementException - iteration has no more elements.
public int nextEdge()
throws java.util.NoSuchElementException
hasNext() method returns false will
return each element in the underlying collection exactly once.
nextEdge in interface EdgeIteratorint.
java.util.NoSuchElementException - iteration has no more elements.
public void remove()
throws java.lang.UnsupportedOperationException
UnsupportedOperationException because edges can't
be removed.
remove in interface java.util.Iteratorjava.lang.UnsupportedOperationException - if the remove
operation is not supported by this Iterator.
protected void finalize()
throws java.lang.Throwable
super.finalize().
finalize in class java.lang.Objectjava.lang.Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||