public class DoubleMaxHeap extends DoubleHeap
queue
DEFAULT_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, resize
desiredSize, heapModified, size
public DoubleMaxHeap()
public DoubleMaxHeap(int size)
size
- initial capacityprotected boolean comp(double o1, double o2)
comp
in class DoubleHeap
o1
- First objecto2
- Second object