Class HeapItem<T>

Type Parameters

  • T = number

Hierarchy

  • HeapItem

Constructors

Properties

Accessors

Constructors

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

    Type Parameters

    • T = number

    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 | T = null

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

    Returns HeapItem<T>

Properties

_priority: number
_val: null | T

Accessors

Generated using TypeDoc