public class Heap extends ArrayList
| Constructor and Description |
|---|
Heap(Comparator comp) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(java.lang.Object object)
Adds an element to the data structure.
|
java.lang.Object |
getRoot()
Returns and removes the root element of the heap.
|
add, add, arrayCopy, clear, contains, get, indexOf, lastIndexOf, remove, remove, removeAll, set, toArray, toArrayaddAll, addAll, equals, getClassShortName, hashCode, iterator, listIterator, listIterator, size, subListcontainsAll, isEmpty, toStringpublic Heap(Comparator comp)