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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals, hashCode
protected AbstractEdgeCollection(Graph graph)
AbstractEdgeCollection
.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.removeEdge( Object )
.remove
in interface Collection
remove
in class AbstractCollection
public boolean contains(Object object)
Graph.containsEdge( 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.