|
Plexus v0.13.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractCollection com.phoenixst.plexus.util.AbstractEdgeCollection
public abstract class AbstractEdgeCollection
An abstract Collection
for Graph.Edges
to help implement the Graph.edges( Predicate )
method. Any non-abstract extension must implement the
iterator()
method.
Constructor Summary | |
---|---|
protected |
AbstractEdgeCollection(Graph graph)
Creates a new AbstractEdgeCollection . |
Method Summary | |
---|---|
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. |
Methods inherited from class java.util.AbstractCollection |
---|
add, clear, containsAll, iterator, 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 |
---|
protected AbstractEdgeCollection(Graph graph)
AbstractEdgeCollection
.
Method Detail |
---|
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
|
Plexus v0.13.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |