com.phoenixst.plexus.util
public class SingletonEdgeIterator extends Object implements Iterator
Iterator
over a single Edge
. SingletonEdgeIterator delegates to Graph.removeEdge(
edge )
.
An alternate
constructor
is provided to explicitly make the created
Iterator
unmodifiable.
Since: 1.0
Version: $Revision: 1.7 $
Constructor Summary | |
---|---|
SingletonEdgeIterator(Graph.Edge edge)
Creates a new unmodifiable SingletonEdgeIterator .
| |
SingletonEdgeIterator(Graph graph, Graph.Edge edge)
Creates a new modifiable SingletonEdgeIterator .
|
Method Summary | |
---|---|
boolean | hasNext() |
Object | next() |
void | remove() |
SingletonEdgeIterator
.
If this constructor is used, SingletonEdgeIterator will throw an
UnsupportedOperationException
.
Parameters: edge the edge over which the returned
Iterator
iterates.
SingletonEdgeIterator
.
Parameters: graph the graph containing the edge over which the
returned Iterator
iterates.
edge the edge over which the returned
Iterator
iterates.