Class PriorityList<T>

A Priority List. All Items are sorted by a Priority Number.

Export

Type Parameters

  • T

Hierarchy

  • PriorityList

Constructors

Accessors

Methods

Constructors

Accessors

  • get length(): number
  • Returns the Length of the Priority list

    Memberof

    PriorityList

    Returns number

Methods

  • Returns the Element with the lowest priority

    Returns

    Memberof

    PriorityList

    Parameters

    • Optional remove: boolean = true

      Flag to remove the item. Defaults to true. Otherwise it remains in the list.

    Returns T

  • Function to returns a sorted List containing only the Value

    Returns

    Sorted List containing the Values.

    Memberof

    PriorityList

    Returns T[]

  • Returns the Element with the highest priority

    Returns

    Memberof

    PriorityList

    Parameters

    • Optional remove: boolean = true

      Flag to remove the item. Defaults to true. Otherwise it remains in the list.

    Returns T

  • Adds Data to the Priority List

    Parameters

    • _priority: number

      lower => lower priority

    • _data: T

      data which are stored

    Returns void

Generated using TypeDoc