|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.combean.graph.containers.ListAsNodeQueue
public class ListAsNodeQueue
A node queue which is based on a java.util.List
Constructor Summary | |
---|---|
ListAsNodeQueue()
Constructor. |
|
ListAsNodeQueue(List<Node> l)
Constructor. |
Method Summary | |
---|---|
void |
clear()
Remove all nodes from the queue |
Node |
dequeue()
Remove a node from the top of the queue |
void |
enqueue(Node v)
Add a node to the end of the queue |
boolean |
isEmpty()
Check if the collection contains any elements. |
NodeIterator |
iterator()
Return an iterator through all nodes in the collection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ListAsNodeQueue()
public ListAsNodeQueue(List<Node> l)
l
- the list to be used as queueMethod Detail |
---|
public void enqueue(Node v)
NodeQueue
enqueue
in interface NodeQueue
v
- the node to be addedpublic Node dequeue()
NodeQueue
dequeue
in interface NodeQueue
public NodeIterator iterator()
FixedNodeCollection
iterator
in interface FixedNodeCollection
public boolean isEmpty()
FixedNodeCollection
isEmpty
in interface FixedNodeCollection
public void clear()
NodeQueue
clear
in interface NodeQueue
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |