Definition at line 38 of file MaxHeap.java.
Public Methods | |
MaxHeap (Comparator c) | |
Use given Comparator for all comparisons between elements in this Heap. | |
Protected Methods | |
int | cmp (int node1, int node2) |
Compare two Objects in this heap - wrapper around compareTo/Comparator.compare. |
|
Use given Comparator for all comparisons between elements in this Heap. Otherwise rely on compareTo methods and Comparable Objects. Definition at line 50 of file MaxHeap.java. |