java.lang.Object | +--Queue
Simple implementation of a queue.
| Field Summary | |
(package private) java.util.Vector |
queue
|
| Constructor Summary | |
Queue()
|
|
| Method Summary | |
(package private) void |
add(java.lang.Object object)
Enqueues an object. |
(package private) void |
addAll(java.util.Collection collection)
Enqueues a whole collection of objects. |
(package private) java.lang.Object |
get()
Dequeues an object. |
(package private) boolean |
isEmpty()
Tests if the queue is empty. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
java.util.Vector queue
| Constructor Detail |
public Queue()
| Method Detail |
void add(java.lang.Object object)
void addAll(java.util.Collection collection)
java.lang.Object get()
boolean isEmpty()