|
|||||||||
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 insertObject examine() throws Underflow
Underflow
- if the queue is emptyObject 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 |