An object that can be inserted into a Heap

Variables

read onlyposition:Int

Tracks the position inside a binary heap.

Inherited Variables

Inherited Methods

Defined by Comparable

compare (other:T):Int

Compares this object to other.

The return value should be > 0 if this object is "bigger" than other, < 0 if this object is "smaller" than other and 0 if both are "equal".