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