com.phoenixst.plexus.util

Class AbstractEdgeCollection

public abstract class AbstractEdgeCollection extends AbstractCollection

An abstract 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 $

Author: Ray A. Conner

Constructor Summary
protected AbstractEdgeCollection(Graph graph)
Creates a new AbstractEdgeCollection.
Method Summary
booleanaddAll(Collection collection)
Throws an UnsupportedOperationException.
booleancontains(Object object)
This implementation delegates to Graph.containsEdge( Object ).
booleanisEmpty()
This implementation returns true if the iterator().hasNext() returns false.
booleanremove(Object object)
This implementation delegates to Graph.removeEdge( Object ).
intsize()
This implementation counts the number of elements accessed by the iterator() method.

Constructor Detail

AbstractEdgeCollection

protected AbstractEdgeCollection(Graph graph)
Creates a new AbstractEdgeCollection.

Method Detail

addAll

public boolean addAll(Collection collection)
Throws an UnsupportedOperationException.

contains

public boolean contains(Object object)
This implementation delegates to Graph.containsEdge( Object ).

isEmpty

public boolean isEmpty()
This implementation returns true if the iterator().hasNext() returns false.

remove

public boolean remove(Object object)
This implementation delegates to Graph.removeEdge( Object ).

size

public int size()
This implementation counts the number of elements accessed by the iterator() method.
See the Plexus project home, hosted by SourceForge.
Copyright B) 1994-2006, by Phoenix Software Technologists, Inc. and others. All Rights Reserved. Use is subject to license terms.