
public class DoubleMaxHeap extends DoubleHeap
queueDEFAULT_INITIAL_CAPACITY, modCount, size, validSize| Constructor and Description |
|---|
DoubleMaxHeap()
Constructor with default capacity.
|
DoubleMaxHeap(int size)
Constructor with initial capacity.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
comp(double o1,
double o2)
Compare two objects
|
add, add, clear, ensureValid, heapifyDown, heapifyUp, peek, poll, removeAt, replaceTopElement, resizedesiredSize, heapModified, sizepublic DoubleMaxHeap()
public DoubleMaxHeap(int size)
size - initial capacityprotected boolean comp(double o1,
double o2)
comp in class DoubleHeapo1 - First objecto2 - Second object