public class IncidentEdgeCollection extends AbstractCollection
Constructor and Description |
---|
IncidentEdgeCollection(Graph graph,
Object baseNode,
org.apache.commons.collections.Predicate traverserPredicate)
Creates a new
IncidentEdgeCollection . |
Modifier and Type | Method and Description |
---|---|
boolean |
addAll(Collection collection)
Throws an
UnsupportedOperationException . |
boolean |
contains(Object object)
This implementation delegates to
Graph.containsEdge( Object ) if the specified object passes
the Predicate specified by the constructor and is
incident upon the baseNode . |
Iterator |
iterator()
This implementation returns a wrapper around
Graph.traverser( node,
predicate ) . |
boolean |
remove(Object object)
This implementation delegates to
Graph.removeEdge( Object ) if the specified object passes the
Predicate specified by the constructor and is
incident upon the baseNode . |
int |
size()
This implementation delegates to
Graph.degree( node, predicate
) . |
add, clear, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals, hashCode, parallelStream, removeIf, spliterator, stream
public IncidentEdgeCollection(Graph graph, Object baseNode, org.apache.commons.collections.Predicate traverserPredicate)
IncidentEdgeCollection
. If a
null
Predicate
is passed to this
constructor, TruePredicate
is used internally.public int size()
Graph.degree( node, predicate
)
.size
in interface Collection
size
in class AbstractCollection
public boolean remove(Object object)
Graph.removeEdge( Object )
if the specified object passes the
Predicate
specified by the constructor and is
incident upon the baseNode
.remove
in interface Collection
remove
in class AbstractCollection
public boolean contains(Object object)
Graph.containsEdge( Object )
if the specified object passes
the Predicate
specified by the constructor and is
incident upon the baseNode
.contains
in interface Collection
contains
in class AbstractCollection
public Iterator iterator()
Graph.traverser( node,
predicate )
.iterator
in interface Iterable
iterator
in interface Collection
iterator
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.