public abstract class PriorityQueue<P extends java.lang.Comparable<? super P>,E>
extends java.lang.Object
implements java.lang.Iterable<E>
| Constructor and Description |
|---|
PriorityQueue() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
clear() |
abstract @Nullable Pair<P,E> |
floorPair() |
abstract boolean |
isEmpty() |
abstract Guard |
lock() |
E |
peek() |
abstract @Nullable Pair<P,E> |
peekPair() |
abstract E |
pop() |
abstract E |
push(P priority,
E value) |
abstract int |
size() |
abstract void |
unlock() |