E
- - the type of the elements in the queue.public final class UpdateablePriorityQueue<E> extends Object implements Iterable<E>, Serializable
Modifier and Type | Class and Description |
---|---|
class |
UpdateablePriorityQueue.ElementRef |
Constructor and Description |
---|
UpdateablePriorityQueue() |
UpdateablePriorityQueue(int initialCapacity) |
UpdateablePriorityQueue(int initialCapacity,
Comparator<? super E> comparator) |
Modifier and Type | Method and Description |
---|---|
UpdateablePriorityQueue.ElementRef |
add(E e) |
void |
clear() |
Comparator<? super E> |
comparator() |
boolean |
contains(E o) |
void |
heapify() |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
E |
peek() |
UpdateablePriorityQueue.ElementRef |
peekEntry() |
E |
poll() |
boolean |
remove(E o) |
boolean |
remove(UpdateablePriorityQueue.ElementRef qe) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public UpdateablePriorityQueue()
public UpdateablePriorityQueue(int initialCapacity)
public UpdateablePriorityQueue(int initialCapacity, Comparator<? super E> comparator)
public UpdateablePriorityQueue.ElementRef add(@Nonnull E e)
@Nullable public UpdateablePriorityQueue.ElementRef peekEntry()
public boolean remove(UpdateablePriorityQueue.ElementRef qe)
public boolean remove(E o)
public boolean isEmpty()
public boolean contains(E o)
public Object[] toArray()
public <T> T[] toArray(T[] a)
public int size()
public void clear()
public Comparator<? super E> comparator()
public void heapify()
Copyright © 2018 SPF4J. All rights reserved.