public interface PriorityLinkedList<T>
| Modifier and Type | Method and Description |
|---|---|
void |
addHead(T t,
int priority) |
void |
addTail(T t,
int priority) |
void |
clear() |
boolean |
isEmpty()
Returns
true if empty, false otherwise.It is safe to be called concurrently. |
LinkedListIterator<T> |
iterator() |
T |
poll() |
int |
size()
Returns the size of this list.
It is safe to be called concurrently. |
void addHead(T t, int priority)
void addTail(T t, int priority)
T poll()
void clear()
int size()
LinkedListIterator<T> iterator()
boolean isEmpty()
true if empty, false otherwise.Copyright © 2018 The Apache Software Foundation. All Rights Reserved.