com.phoenixst.plexus.util
public class IncidentEdgeCollection extends AbstractCollection
Collection for Graph.Edges to help
implement the Graph.incidentEdges(
Predicate ) method.
Since: 1.0
Version: $Revision: 1.7 $
| Constructor Summary | |
|---|---|
| IncidentEdgeCollection(Graph graph, Object baseNode, Predicate traverserPredicate)
Creates a new IncidentEdgeCollection. | |
| Method Summary | |
|---|---|
| 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
). |
IncidentEdgeCollection. If a
null Predicate is passed to this
constructor, TruePredicate is used internally.UnsupportedOperationException.Graph.containsEdge( Object ) if the specified object passes
the Predicate specified by the constructor and is
incident upon the baseNode. Graph.traverser( node,
predicate ).Graph.removeEdge( Object ) if the specified object passes the
Predicate specified by the constructor and is
incident upon the baseNode. Graph.degree( node, predicate
).