public class JavaQueueWrapper<T> extends IStructure<T>
IStructure.Backoff, IStructure.Node<T>
abort
Constructor and Description |
---|
JavaQueueWrapper(java.util.Queue<T> collection) |
Modifier and Type | Method and Description |
---|---|
void |
add(T item)
add a object of type T
|
static <T> JavaQueueWrapper<T> |
createConcurrentQueue() |
boolean |
isEmpty()
Method to tell if the data structure is empty (contains no elements).
|
T |
remove()
retrieve a object of type T
|
add, get, registerThread, shutdown
public JavaQueueWrapper(java.util.Queue<T> collection)
public void add(T item)
IStructure
add
in class IStructure<T>
public boolean isEmpty()
IStructure
isEmpty
in class IStructure<T>
public T remove()
IStructure
remove
in class IStructure<T>
public static <T> JavaQueueWrapper<T> createConcurrentQueue()