Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Queue

Queue implementation using a doubly linked list.

Hierarchy

  • Queue

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Private dll

dll: DoublyLinkedList = new DoublyLinkedList()

Methods

dequeue

  • dequeue(): undefined | any
  • Returns the first item in the queue.

    Returns undefined | any

    item

enqueue

  • enqueue(item: any): void
  • Parameters

    • item: any

    Returns void

getSize

  • getSize(): number

isEmpty

  • isEmpty(): boolean

Generated using TypeDoc