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

Method Index

 o insert(Heapable)
 o isEmpty()
 o preorder(int, TreeGraphics)
 o remove()
 o removeAllElements()
 o size()

Methods

 o remove
  public abstract Heapable remove() throws NoSuchElementException
 o insert
  public abstract void insert(Heapable key)
 o preorder
  public abstract void preorder(int i,
                                TreeGraphics tg)
 o isEmpty
  public abstract boolean isEmpty()
 o size
  public abstract int size()
 o removeAllElements
  public abstract void removeAllElements()

All Packages  Class Hierarchy  This Package  Previous  Next  Index