Queue | @uirouter/angular
Options
Menu

Class Queue<T>

Type parameters

  • T

Hierarchy

  • Queue

Index

Constructors

  • new Queue(_items?: T[], _limit?: number): Queue
  • Parameters

    • _items: Default value  T[] = []
    • _limit: Default value  number = null

    Returns Queue


Properties

_evictListeners: function[] = []
_items: T[]
_limit: number
onEvict: function = pushTo(this._evictListeners)

Type declaration

    • (val: T): T
    • Parameters

      • val T

      Returns T

Methods

  • clear(): Array<T>
  • Returns Array<T>


  • dequeue(): T
  • Returns T


  • enqueue(item: T): T
  • Parameters

    • item T

    Returns T


  • evict(): T
  • Returns T


  • peekHead(): T
  • Returns T


  • peekTail(): T
  • Returns T


  • remove(item: T): T
  • Parameters

    • item T

    Returns T


  • size(): number
  • Returns number


Generated using TypeDoc