Method Summary |
|
public void | addElement(Object object) Adds "object" to the queue. |
public int | countElements() Returns the number of elements in this queue. |
void | grow() Enlarges the queue capacity by "grow_size". |
public boolean | hasMoreElements() Returns true if this queue contains more elements and false otherwise. |
public void | insertElementAt(Object element, int index) |
public Object | nextElement() Removes the next element from the queue and returns it. |
public Object | readElementAt(int index) Returns the element at index number "index" (index number 0 is
the first element that is read with the nextElement() method). |
public Object | readNextElement() Returns the next element that on the queue, but leaves the element
on the queue so that the next call to nextElement() or
readNextElement() will return the same element. |
public void | setCapacity(int new_capacity) Conserves memory by shrinking the capacity of the queue to
"new_capacity". |
void | shift() Shifts all elements so that "read_point" is set to 0. |
public void | shrinkCapacityToSize() Sets the capacity to the number of elements in the queue. |