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.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractEdgeCollection(Graph graph)
Creates a new
AbstractEdgeCollection. |
| Modifier and Type | Method and Description |
|---|---|
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. |
add, clear, containsAll, iterator, removeAll, retainAll, toArray, toArray, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, hashCodeprotected AbstractEdgeCollection(Graph graph)
AbstractEdgeCollection.public int size()
iterator() method.size in interface Collectionsize in class AbstractCollectionpublic boolean isEmpty()
true if the
iterator().hasNext() returns false.isEmpty in interface CollectionisEmpty in class AbstractCollectionpublic boolean remove(Object object)
Graph.removeEdge( Object ).remove in interface Collectionremove in class AbstractCollectionpublic boolean contains(Object object)
Graph.containsEdge( Object ).contains in interface Collectioncontains in class AbstractCollectionpublic boolean addAll(Collection collection)
UnsupportedOperationException.addAll in interface CollectionaddAll in class AbstractCollectionSee 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.