Method Summary |
|
public void | addBack(Object obj) Add an object to the back of the queue. |
public void | addFront(Object obj) Add an object to the front of the queue. |
public Object | head() Access the object at the front of the queue. |
public Object | popBack() Remove and return the item at the back of the queue. |
public Object | popFront() Remove and return the item at the front of the queue. |
public void | setCapacity(int capacity) Specify the maximum capacity of this queue, -1 means unbounded. |
public int | size() Return the number of items in the queue. |
public Object | tail() Access the object at the back of the queue. |