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