Interface representing a generic Queue ADT.

Type Parameters

  • T

Implements

Constructors

Accessors

Methods

Constructors

Accessors

Methods

  • Removes and returns the element from the queue

    Returns undefined | T

    returns the element from the queue.

  • Returns true if the collection is empty.

    Returns boolean

    True if the collection is empty, otherwise false.

  • Returns the element from the queue without removing it

    Returns undefined | T

    returns the element from the queue without removing it.