public class DoubleMinHeap extends DoubleHeap
queue
DEFAULT_INITIAL_CAPACITY, modCount, size, validSize
Constructor and Description |
---|
DoubleMinHeap()
Constructor with default capacity.
|
DoubleMinHeap(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 DoubleMinHeap()
public DoubleMinHeap(int size)
size
- initial capacityprotected boolean comp(double o1, double o2)
comp
in class DoubleHeap
o1
- First objecto2
- Second object