|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
Interface specifying the behavior for a queue.
| Method Summary | |
java.lang.Object |
dequeue()
Dequeues and returns the next available element on this queue. |
void |
enqueue(java.lang.Object element)
Enqueues the given element on this queue. |
java.lang.Object |
front()
Returns the next available element on this queue. |
boolean |
isEmpty()
Returns whether or not this queue structure is empty. |
int |
size()
Returns the size of this queue structure. |
| Method Detail |
public void enqueue(java.lang.Object element)
element - the desired element to enqueuepublic java.lang.Object dequeue()
public java.lang.Object front()
public int size()
public boolean isEmpty()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||