|
Plexus v0.13.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection
com.phoenixst.plexus.util.IncidentEdgeCollection
public class IncidentEdgeCollection
A Collection for Graph.Edges to help
implement the Graph.incidentEdges(
Predicate ) method.
| Constructor Summary | |
|---|---|
IncidentEdgeCollection(Graph graph,
Object baseNode,
org.apache.commons.collections.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
). |
| Methods inherited from class java.util.AbstractCollection |
|---|
add, clear, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Collection |
|---|
equals, hashCode |
| Constructor Detail |
|---|
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.
| Method Detail |
|---|
public int size()
Graph.degree( node, predicate
).
size in interface Collectionsize in class AbstractCollectionpublic 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 Collectionremove in class AbstractCollectionpublic 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 Collectioncontains in class AbstractCollectionpublic Iterator iterator()
Graph.traverser( node,
predicate ).
iterator in interface Iterableiterator in interface Collectioniterator in class AbstractCollectionpublic boolean addAll(Collection collection)
UnsupportedOperationException.
addAll in interface CollectionaddAll in class AbstractCollection
|
Plexus v0.13.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||