java.lang.Object
com.flexstor.common.util.Queue
- public class Queue
- extends java.lang.Object
Implements a simple queue.
- Version:
- 3.0
|
Constructor Summary |
Queue()
|
|
Method Summary |
void |
clear()
Removes all items from the queue. |
boolean |
isEmpty()
Returns true if this queue is empty. |
java.lang.Object |
pop()
Retrieves and removes an object from the start of the queue |
void |
push(java.lang.Object o)
Adds an object to the end of the queue. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
queue
private java.util.Vector queue
Queue
public Queue()
push
public void push(java.lang.Object o)
- Adds an object to the end of the queue.
pop
public java.lang.Object pop()
throws java.lang.ArrayIndexOutOfBoundsException
- Retrieves and removes an object from the start of the queue
clear
public void clear()
- Removes all items from the queue.
isEmpty
public boolean isEmpty()
- Returns true if this queue is empty.