public class SingletonEdgeIterator extends Object implements Iterator
Iterator
over a single Edge
. remove()
delegates to Graph.removeEdge(
edge )
.
An alternate
constructor
is provided to explicitly make the created
Iterator
unmodifiable.
Constructor and Description |
---|
SingletonEdgeIterator(Graph.Edge edge)
Creates a new unmodifiable
SingletonEdgeIterator . |
SingletonEdgeIterator(Graph graph,
Graph.Edge edge)
Creates a new modifiable
SingletonEdgeIterator . |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
Object |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public SingletonEdgeIterator(Graph.Edge edge)
SingletonEdgeIterator
.
If this constructor is used, remove()
will throw an
UnsupportedOperationException
.edge
- the edge over which the returned
Iterator
iterates.public SingletonEdgeIterator(Graph graph, Graph.Edge edge)
SingletonEdgeIterator
.graph
- the graph containing the edge over which the
returned Iterator
iterates.edge
- the edge over which the returned
Iterator
iterates.See the Plexus project home, hosted by SourceForge.
Copyright ? 1994-2006, by Phoenix Software Technologists, Inc. and others. All Rights Reserved. Use is subject to license terms.