|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--VectorQueue
Queue implementation using a Vector as its underlying
data structure.
| Field Summary | |
protected java.util.Vector |
elements
The vector used for storage. |
| Constructor Summary | |
VectorQueue()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.Vector elements
| Constructor Detail |
public VectorQueue()
| Method Detail |
public java.lang.Object dequeue()
QueueInterfacedequeue in interface QueueInterfacepublic void enqueue(java.lang.Object element)
QueueInterfaceenqueue in interface QueueInterfaceQueueInterfaceelement - the desired element to enqueuepublic boolean isEmpty()
QueueInterfaceisEmpty in interface QueueInterfacepublic java.lang.Object front()
QueueInterfacefront in interface QueueInterfacepublic int size()
QueueInterfacesize in interface QueueInterface
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||