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

java.lang.Objectnet.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 queue| Method Detail |
|---|
public void enqueue(Node v)
NodeQueue
enqueue in interface NodeQueuev - the node to be addedpublic Node dequeue()
NodeQueue
dequeue in interface NodeQueuepublic NodeIterator iterator()
FixedNodeCollection
iterator in interface FixedNodeCollectionpublic boolean isEmpty()
FixedNodeCollection
isEmpty in interface FixedNodeCollectionpublic void clear()
NodeQueue
clear in interface NodeQueue
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||