Class HeapItem<V>

Type Parameters

  • V = any

Hierarchy

  • HeapItem

Constructors

Properties

Accessors

Constructors

  • The constructor function initializes an instance of a class with a priority and a value.

    Type Parameters

    • V = any

    Parameters

    • priority: number = Number.MAX_SAFE_INTEGER

      The priority parameter is a number that represents the priority of the value. It is optional and has a default value of NaN.

    • Optional val: null | V = null

      The val parameter is of type V | null, which means it can accept a value of type V or null.

    Returns HeapItem<V>

Properties

_priority: number
_val: null | V

Accessors

Generated using TypeDoc