public abstract class AbstractNodeCollection extends AbstractCollection
Collection for nodes to help implement
the Graph.nodes( Predicate ) method.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractNodeCollection(Graph graph)
Creates a new
AbstractNodeCollection. |
| Modifier and Type | Method and Description |
|---|---|
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. |
add, clear, containsAll, iterator, removeAll, retainAll, toArray, toArray, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, hashCodeprotected AbstractNodeCollection(Graph graph)
AbstractNodeCollection.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.removeNode( Object ).remove in interface Collectionremove in class AbstractCollectionpublic boolean contains(Object object)
Graph.containsNode( 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.