public static final class ITaskQueue.Single<T> extends java.lang.Object implements ITaskQueue<T,T>
ITaskQueue.Priority, ITaskQueue.RunnableWithPriority, ITaskQueue.Single<T>
Modifier and Type | Method and Description |
---|---|
boolean |
enqueue(T value) |
boolean |
isEmpty() |
T |
poll() |
private final java.util.Queue<T> queue
public Single(java.util.Queue<T> queueIn)
@Nullable public T poll()
poll
in interface ITaskQueue<T,T>
public boolean enqueue(T value)
enqueue
in interface ITaskQueue<T,T>
public boolean isEmpty()
isEmpty
in interface ITaskQueue<T,T>