|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--DataStructures.QueueList
A linked list implementation of a queue
| Constructor Summary | |
QueueList()
|
|
| Method Summary | |
java.lang.Object |
dequeue()
Detaches an item from the queue. |
void |
enqueue(java.lang.Object item)
Attaches an item to the queue. |
boolean |
isEmpty()
Indicates the status of the queue. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public QueueList()
| Method Detail |
public boolean isEmpty()
QueueisEmpty in interface QueueDataStructures.Queuetrue if the queue is empty.public void enqueue(java.lang.Object item)
Queueenqueue in interface QueueDataStructures.Queueitem - the Object to be queued.public java.lang.Object dequeue()
Queuedequeue in interface QueueDataStructures.QueueNoSuchElementException - if the queue is empty.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||