|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Queue interface.
| Method Summary | |
java.lang.Object |
dequeue()
remove the item at the front of the queue |
void |
enqueue(java.lang.Object a)
insert an item at the back of the queue |
java.lang.Object |
examine()
examine the item at the front of the queue |
boolean |
isEmpty()
test whether the queue is empty |
| Method Detail |
public boolean isEmpty()
public void enqueue(java.lang.Object a)
a - the item to insert
public java.lang.Object examine()
throws Underflow
Underflow - if the queue is empty
public java.lang.Object dequeue()
throws Underflow
Underflow - if the queue is empty
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||