|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

java.lang.Objectnet.sourceforge.combean.graph.containers.SetAsNodeSet
public class SetAsNodeSet
A wrapper which turns a java.lang.util.Set into a NodeSet.
| Constructor Summary | |
|---|---|
SetAsNodeSet(Set<Node> implSet)
Construct NodeSet wrapper for java.lang.util.Set |
|
| Method Summary | |
|---|---|
boolean |
add(Node v)
Add a node to the set. |
void |
clear()
Remove all elements from the set. |
boolean |
contains(Node v)
Check if the set contains a certain node v. |
Set |
getImplementation()
|
boolean |
isEmpty()
Check if the collection contains any elements. |
NodeIterator |
iterator()
Return an iterator through all nodes in the collection. |
boolean |
remove(Node v)
Remove a node from the set. |
int |
size()
Return the number of elements in the set. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SetAsNodeSet(Set<Node> implSet)
implSet - the Set to be wrapped| Method Detail |
|---|
public final boolean add(Node v)
NodeSet
add in interface NodeSetv - the node to be added.
NodeSet.add(net.sourceforge.combean.interfaces.graph.Node)public final boolean remove(Node v)
NodeSet
remove in interface NodeSetv - the node to be removed.
NodeSet.remove(net.sourceforge.combean.interfaces.graph.Node)public final void clear()
NodeSet
clear in interface NodeSetNodeSet.clear()public final int size()
FixedNodeSet
size in interface FixedNodeSetFixedNodeSet.size()public final boolean contains(Node v)
FixedNodeSet
contains in interface FixedNodeSetFixedNodeSet.contains(net.sourceforge.combean.interfaces.graph.Node)public final NodeIterator iterator()
FixedNodeCollection
iterator in interface FixedNodeCollectionFixedNodeCollection.iterator()public final boolean isEmpty()
FixedNodeCollection
isEmpty in interface FixedNodeCollectionFixedNodeCollection.isEmpty()public final Set getImplementation()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||