Searched refs:compareElements (Results 1 – 1 of 1) sorted by relevance
309 return (maxHeap.compareElements(1, 2) <= 0) ? 1 : 2; in getMaxElementIndex()496 int compareElements(int a, int b) { in compareElements() method in MinMaxPriorityQueue.Heap580 if (compareElements(i, minIndex) < 0) { in findMin()707 && (compareElements(i, getLeftChildIndex(i)) > 0)) { in verifyIndex()711 && (compareElements(i, getRightChildIndex(i)) > 0)) { in verifyIndex()714 if ((i > 0) && (compareElements(i, getParentIndex(i)) > 0)) { in verifyIndex()717 if ((i > 2) && (compareElements(getGrandparentIndex(i), i) > 0)) { in verifyIndex()