|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectHeap
public abstract class Heap
A class implementing the logic for a binary heap.
Constructor Summary | |
---|---|
Heap()
Creates an empty heap. |
Method Summary | |
---|---|
boolean |
isEmpty()
Returns whether or not the heap is empty. |
void |
sanityCheck()
|
int |
size()
Returns the number of elements currently in the heap. |
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Heap()
Method Detail |
---|
public final boolean isEmpty()
public final int size()
public void sanityCheck()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |