Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Queue<K>

Type parameters

  • K

Hierarchy

Implemented by

Index

Methods

__@iterator

  • __@iterator(): Iterator<K>

add

  • add(k: K): boolean
  • Parameters

    • k: K

    Returns boolean

    true if this collection changed as a result of the call

clear

  • clear(): any

contains

  • contains(t: K): boolean

element

  • element(): K
  • Returns K

    the element at the head of the queue or null if empty

forEach

immutableCollection

isEmpty

  • isEmpty(): boolean

iterator

offer

  • offer(k: K): boolean
  • Parameters

    • k: K

    Returns boolean

    true if this collection changed as a result of the call

peek

  • peek(): K
  • Returns K

    the element at the head of the queue or null if empty

poll

  • poll(): K
  • Returns K

    the element at the head of the queue or null if empty

remove

  • remove(t: K): boolean

removeQueue

  • removeQueue(): K
  • Returns K

    the element at the head of the queue or undefined if empty

size

  • size(): number

Generated using TypeDoc