HeapEntry

interface HeapEntry<out Element, out Priority>(source)

Represents a pair of an element and its (future) priority in the heap.

This interface is used to represent entries for a heap when the heap is being constructed.

Inheritors

Properties

Link copied to clipboard
abstract val element: Element

Returns the corresponding element of the entry.

Link copied to clipboard
abstract val priority: Priority

Returns the corresponding priority of the entry.

Functions

Link copied to clipboard
abstract operator override fun equals(other: Any?): Boolean

Legacy equality operation. Must return the result of referential equality.

Link copied to clipboard
abstract override fun hashCode(): Int

Legacy hash computation operation. Must return any Int value.

Link copied to clipboard
abstract override fun toString(): String

Represents the heap entry as a string. Must return a string in the following form.