public interface PriorityLinkedList<E>
| Modifier and Type | Method and Description |
|---|---|
void |
addHead(E e,
int priority) |
void |
addSorted(E e,
int priority) |
void |
addTail(E e,
int priority) |
void |
clear() |
boolean |
isEmpty()
Returns
true if empty, false otherwise.It is safe to be called concurrently. |
LinkedListIterator<E> |
iterator() |
E |
poll() |
E |
removeWithID(String listID,
long id) |
void |
setNodeStore(NodeStore<E> supplier) |
int |
size()
Returns the size of this list.
It is safe to be called concurrently. |
void addHead(E e, int priority)
void addTail(E e, int priority)
void addSorted(E e, int priority)
E poll()
void clear()
void setNodeStore(NodeStore<E> supplier)
supplier - LinkedList.setNodeStore(NodeStore)int size()
LinkedListIterator<E> iterator()
boolean isEmpty()
true if empty, false otherwise.Copyright © 2022 The Apache Software Foundation. All rights reserved.