Interface mjr.heap.HeapImpl
All Packages Class Hierarchy This Package Previous Next Index
Interface mjr.heap.HeapImpl
- public interface HeapImpl
- extends Object
An interface for a heap implementation. Can either be descending or
ascending.
- See Also:
- HeapDescending, HeapAscending
-
insert(Heapable)
-
-
isEmpty()
-
-
preorder(int, TreeGraphics)
-
-
remove()
-
-
removeAllElements()
-
-
size()
-
remove
public abstract Heapable remove() throws NoSuchElementException
insert
public abstract void insert(Heapable key)
preorder
public abstract void preorder(int i,
TreeGraphics tg)
isEmpty
public abstract boolean isEmpty()
size
public abstract int size()
removeAllElements
public abstract void removeAllElements()
All Packages Class Hierarchy This Package Previous Next Index