Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- add(E) - Method in class Heap
- add(E) - Method in interface HeapInterface
-
Adds the specified element to this heap.
C
- comparator() - Method in class Heap
- comparator() - Method in interface HeapInterface
-
Returns the comparator used by this heap.
E
- EmptyHeapException - Exception Class in Unnamed Package
-
Thrown when an application attempts to remove an item from an empty heap.
- EmptyHeapException() - Constructor for exception class EmptyHeapException
-
Default Constructor
- EmptyHeapException(String) - Constructor for exception class EmptyHeapException
-
Constructs an EmptyHeapException with the specified detail message.
H
- Heap<E> - Class in Unnamed Package
-
A generic heap that stores elements in a a generic array.
- Heap(Comparator<E>) - Constructor for class Heap
-
Constructs an empty heap.
- HeapInterface<E> - Interface in Unnamed Package
-
A generic heap.
- HeapTester - Class in Unnamed Package
- HeapTester() - Constructor for class HeapTester
I
- INITIAL_SIZE - Static variable in interface HeapInterface
-
Initial size of the Heap.
- isEmpty() - Method in class Heap
- isEmpty() - Method in interface HeapInterface
-
Returns true if there are no elements in this heap, false otherwise.
M
- main(String[]) - Static method in class HeapTester
- main(String[]) - Static method in class TesterForPartII
R
- remove() - Method in class Heap
- remove() - Method in interface HeapInterface
-
Removes and returns the element with the highest priority.
S
- size() - Method in class Heap
- size() - Method in interface HeapInterface
-
Returns the number of elements stored in this heap.
- stringTest() - Static method in class TesterForPartII
-
Uses a heap of String Objects and StringComparator.
T
- TesterForPartII - Class in Unnamed Package
- TesterForPartII() - Constructor for class TesterForPartII
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form