com.phoenixst.plexus.util
public abstract class AbstractEdgeCollection extends AbstractCollection
Collection for Graph.Edges
to help implement the Graph.edges( Predicate )
method. Any non-abstract extension must implement the
iterator() method.
Since: 1.0
Version: $Revision: 1.6 $
| Constructor Summary | |
|---|---|
| protected | AbstractEdgeCollection(Graph graph)
Creates a new AbstractEdgeCollection. |
| Method Summary | |
|---|---|
| boolean | addAll(Collection collection)
Throws an UnsupportedOperationException. |
| boolean | contains(Object object)
This implementation delegates to Graph.containsEdge( Object ). |
| boolean | isEmpty()
This implementation returns true if the
iterator().hasNext() returns false. |
| boolean | remove(Object object)
This implementation delegates to Graph.removeEdge( Object ). |
| int | size()
This implementation counts the number of elements accessed by
the iterator() method. |
AbstractEdgeCollection.UnsupportedOperationException.Graph.containsEdge( Object ).true if the
iterator().hasNext() returns false.Graph.removeEdge( Object ).iterator() method.