|
|||||||||||
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 Queue
object
- the Object to insert.public void pushAll(java.lang.Object[] object)
pushAll
in interface Queue
object
- the Object array to queue up.public java.lang.Object pop()
pop
in interface Queue
public java.lang.Object[] popAll()
popAll
in interface Queue
public java.lang.Object peek()
peek
in interface Queue
public java.lang.Object[] peekAll()
peekAll
in interface Queue
public int size()
size
in interface Queue
public boolean isEmpty()
isEmpty
in interface Queue
public void remove(java.lang.Object object)
remove
in interface Queue
object
- the Object to remove.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |