|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.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 wrappedMethod Detail |
---|
public final boolean add(Node v)
NodeSet
add
in interface NodeSet
v
- the node to be added.
NodeSet.add(net.sourceforge.combean.interfaces.graph.Node)
public final boolean remove(Node v)
NodeSet
remove
in interface NodeSet
v
- the node to be removed.
NodeSet.remove(net.sourceforge.combean.interfaces.graph.Node)
public final void clear()
NodeSet
clear
in interface NodeSet
NodeSet.clear()
public final int size()
FixedNodeSet
size
in interface FixedNodeSet
FixedNodeSet.size()
public final boolean contains(Node v)
FixedNodeSet
contains
in interface FixedNodeSet
FixedNodeSet.contains(net.sourceforge.combean.interfaces.graph.Node)
public final NodeIterator iterator()
FixedNodeCollection
iterator
in interface FixedNodeCollection
FixedNodeCollection.iterator()
public final boolean isEmpty()
FixedNodeCollection
isEmpty
in interface FixedNodeCollection
FixedNodeCollection.isEmpty()
public final Set getImplementation()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |