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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals, hashCode
protected AbstractNodeCollection(Graph graph)
AbstractNodeCollection
.public int size()
iterator()
method.size
in interface Collection
size
in class AbstractCollection
public boolean isEmpty()
true
if the
iterator().hasNext()
returns false
.isEmpty
in interface Collection
isEmpty
in class AbstractCollection
public boolean remove(Object object)
Graph.removeNode( Object )
.remove
in interface Collection
remove
in class AbstractCollection
public boolean contains(Object object)
Graph.containsNode( Object )
.contains
in interface Collection
contains
in class AbstractCollection
public boolean addAll(Collection collection)
UnsupportedOperationException
.addAll
in interface Collection
addAll
in class AbstractCollection
See 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.