public final class FIFOQueue
extends java.lang.Object
Constructor and Description |
---|
FIFOQueue() |
FIFOQueue(int initialSize_) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(java.lang.Object obj_)
add an element to the bottom of the queue
|
void |
clear() |
boolean |
isEmpty() |
java.lang.Object |
pop() |
boolean |
push(java.lang.Object obj_) |
java.lang.Object |
remove()
remove the top element from the buffer
|
java.lang.String |
toString() |
public FIFOQueue(int initialSize_)
initialSize_
- the initial size of the queuepublic FIFOQueue()
public boolean push(java.lang.Object obj_)
public boolean add(java.lang.Object obj_)
public java.lang.Object pop()
public java.lang.Object remove()
public boolean isEmpty()
public java.lang.String toString()
toString
in class java.lang.Object
public void clear()