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