|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IHeap
IHeap is an interface for a heap
| Method Summary | |
|---|---|
boolean |
delete(IHeapItem deleteItem)
Deletes a specific heap item from this heap |
IHeapItem |
deleteMin()
Removes and returns the minimum IHeapItem in this heap |
IHeapItem |
findMin()
Method returns the minimum IHeapItem in this heap |
boolean |
insert(IHeapItem newItem)
Adds a IHeapItem to this heap. |
boolean |
isEmpty()
Method returns true if this heap contains no elements and false otherwise |
int |
size()
size: method returns the number of elements in this heap |
| Method Detail |
|---|
boolean insert(IHeapItem newItem)
boolean delete(IHeapItem deleteItem)
IHeapItem findMin()
IHeapItem deleteMin()
boolean isEmpty()
int size()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||