public static final class TaskQueue.Prioritized extends Object implements TaskQueue<TaskQueue.PrioritizedTask,Runnable>
TaskQueue.Prioritized, TaskQueue.PrioritizedTask, TaskQueue.Simple<T>
Constructor and Description |
---|
Prioritized(int priorityCount) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(TaskQueue.PrioritizedTask prioritizedTask) |
boolean |
isEmpty() |
Runnable |
poll() |
@Nullable public Runnable poll()
poll
in interface TaskQueue<TaskQueue.PrioritizedTask,Runnable>
public boolean add(TaskQueue.PrioritizedTask prioritizedTask)
add
in interface TaskQueue<TaskQueue.PrioritizedTask,Runnable>
public boolean isEmpty()
isEmpty
in interface TaskQueue<TaskQueue.PrioritizedTask,Runnable>