|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectDataStructures.QueueArray<E>
E - the type of elements held in this queuepublic class QueueArray<E>
An array implementation of a queue
| Constructor Summary | |
|---|---|
QueueArray()
Creates an empty queue suitable for holding items of type E |
|
| Method Summary | |
|---|---|
E |
dequeue()
Detaches an item from the queue. |
void |
enqueue(E item)
Attaches an item to the queue. |
boolean |
isEmpty()
Indicates the status of the queue. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QueueArray()
| Method Detail |
|---|
public boolean isEmpty()
Queue
isEmpty in interface Queue<E>true if the queue is empty.public void enqueue(E item)
Queue
enqueue in interface Queue<E>item - the item of type E to be queued.public E dequeue()
Queue
dequeue in interface Queue<E>
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||