- get
Gets the next element to be removed without actually removing it (peek).
- isEmpty
- compare
Compares two objects using the comparator if specified, or the natural order
otherwise.
- grow
Increases the size of the heap to support additional elements
- isAtCapacity
Tests if the buffer is at capacity.
- percolateDownMaxHeap
Percolates element down heap from the position given by the index. Assumes it is
a maximum heap.
- percolateDownMinHeap
Percolates element down heap from the position given by the index. Assumes it is
a minimum heap.
- percolateUpMaxHeap
Percolates a new element up heap from the bottom. Assume it is a maximum heap.
- percolateUpMinHeap
Percolates a new element up heap from the bottom. Assumes it is a minimum heap.
- <init>
Constructs a new empty buffer specifying the sort order and comparator.
- add
Adds an element to the buffer. The element added will be sorted according to the
comparator in use.
- remove