|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A Queue is a repository for Objects maintained in first-in first-out order. Objects are inserted using enqueue and removed using dequeue. Objects are removed in the same order in which they are inserted.
| Method Summary | |
java.lang.Object |
dequeue()
Remove an Object from the queue. |
void |
enqueue(java.lang.Object item)
Insert an Object in the queue. |
boolean |
isEmpty()
Indicate whether or not the Queue is empty |
| Method Detail |
public void enqueue(java.lang.Object item)
item - the Object to be inserted
public java.lang.Object dequeue()
throws EmptyQueueException
EmptyQueueException - if the Queue is emptypublic boolean isEmpty()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||