|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--magi.toolkit.util.queue.FIFOQueue
A "First In, First Out" implementation of the Queue interface.
Queue| Constructor Summary | |
FIFOQueue()
Default constructor. |
|
FIFOQueue(java.lang.Object[] objects)
Create a FIFO Queue pre-populated with the elements provided. |
|
| Method Summary | |
boolean |
isEmpty()
Returns true if the queue currently contains no elements. |
java.lang.Object |
peek()
Peek at the next Object available in the queue. |
java.lang.Object[] |
peekAll()
Peek at all Objects available in the queue, in the correct queueing order. |
java.lang.Object |
pop()
Pops an Object off the queue. |
java.lang.Object[] |
popAll()
Pops all Objects off the queue, in the correct queueing order. |
void |
push(java.lang.Object object)
Pushes an Object into the queue. |
void |
pushAll(java.lang.Object[] object)
Pushes an array of Objects into the queue. |
void |
remove(java.lang.Object object)
Removes an Object directly from this queue, regardless of its current position in the queue. |
int |
size()
Returns the number of Objects currently in the queue. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FIFOQueue()
public FIFOQueue(java.lang.Object[] objects)
objects - an array of Objects to queue up.| Method Detail |
public void push(java.lang.Object object)
push in interface Queueobject - the Object to insert.public void pushAll(java.lang.Object[] object)
pushAll in interface Queueobject - the Object array to queue up.public java.lang.Object pop()
pop in interface Queuepublic java.lang.Object[] popAll()
popAll in interface Queuepublic java.lang.Object peek()
peek in interface Queuepublic java.lang.Object[] peekAll()
peekAll in interface Queuepublic int size()
size in interface Queuepublic boolean isEmpty()
isEmpty in interface Queuepublic void remove(java.lang.Object object)
remove in interface Queueobject - the Object to remove.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||