Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Queue

Queue data structure

Hierarchy

  • Queue

Constructors

Properties

Methods

Constructors

constructor

  • Returns Queue

Properties

Private queue

queue: LinkedList
property

list of entities in the queue

Methods

dequeue

  • dequeue(): any
  • Returns any

enqueue

  • enqueue(value: any): Queue
  • Parameters

    • value: any

    Returns Queue

isEmpty

  • isEmpty(): boolean
  • Returns boolean

peak

  • peak(): any
  • Returns any

toString

  • toString(callback?: function): string
  • Parameters

    • Optional callback: function
        • (value: any): string
        • Parameters

          • value: any

          Returns string

    Returns string