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() |
static <P extends java.lang.Comparable<? super P>,E> |
moveQueue(@NotNull PriorityQueue<P,E> source,
@NotNull PriorityQueue<P,E> dest) |
E |
peek() |
abstract @Nullable Pair<P,E> |
peekPair() |
abstract E |
pop() |
abstract E |
push(P priority,
E value) |
abstract int |
size() |
abstract void |
unlock() |
public abstract boolean isEmpty()
public abstract int size()
@Nullable public final E peek()
@Nullable public abstract E pop()
public abstract void clear()
public abstract Guard lock()
public abstract void unlock()
public static <P extends java.lang.Comparable<? super P>,E> int moveQueue(@NotNull
@NotNull PriorityQueue<P,E> source,
@NotNull
@NotNull PriorityQueue<P,E> dest)