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