public static final class BinaryHeap.Max<T> extends BinaryHeap<T> implements MaxHeap<T>
BinaryHeap.Max<T>, BinaryHeap.Min<T>
defaultCapacity
Constructor and Description |
---|
BinaryHeap.Max() |
BinaryHeap.Max(int capacity) |
Modifier and Type | Method and Description |
---|---|
T |
getMax() |
double |
getMaxKey() |
void |
removeMax() |
void |
replaceMax(double key,
T value) |
capacity, getTip, getTipKey, offer, removeTip, replaceTip, size
public BinaryHeap.Max()
public BinaryHeap.Max(int capacity)
public void replaceMax(double key, T value)
replaceMax
in interface MaxHeap<T>
Copyright © 2015. All rights reserved.