|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A Deque (double-ended queue) is a repository for objects that maintains insertion order. Objects can be inserted and removed from either in.
| Method Summary | |
java.lang.Object |
dequeueBack()
Remove an Object from the back of the Deque. |
java.lang.Object |
dequeueFront()
Remove an Object from the front of the Deque. |
void |
enqueueBack(java.lang.Object item)
Insert an Object at the back of the Deque. |
void |
enqueueFront(java.lang.Object item)
Insert an Object at the front of the Deque. |
boolean |
isEmpty()
Indicate whether or not the Deque is empty |
| Method Detail |
public void enqueueFront(java.lang.Object item)
item - the Object to be inserted
public java.lang.Object dequeueBack()
throws EmptyQueueException
EmptyQueueException - if the Queue is emptypublic void enqueueBack(java.lang.Object item)
item - the Object to be inserted
public java.lang.Object dequeueFront()
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 | |||||||||