goog.structs.Queue |
![]()
Removes all elements from the queue.
|
code » | ||
Returns true if the given value is in the queue.
Arguments:
Returns: boolean
Whether the object is in the queue.
|
code » | ||
![]()
Retrieves and removes the head of this queue.
Returns: T
The element at the head of this queue. Returns undefined if the
queue is empty.
|
code » | ||
![]()
Puts the specified element on this queue.
Arguments:
|
code » | ||
Returns the number of elements in this queue.
Returns: number
The number of elements in this queue.
|
code » | ||
Returns all the values in the queue.
|
code » | ||
Returns true if this queue contains no elements.
Returns: boolean
true if this queue contains no elements.
|
code » | ||
![]()
Flips the back stack onto the front stack if front is empty,
to prepare for peek() or dequeue().
|
code » | ||
![]()
Retrieves but does not remove the head of this queue.
Returns: T
The element at the head of this queue. Returns undefined if the
queue is empty.
|
code » | ||
Removes the first occurrence of a particular value from the queue.
Arguments:
Returns: boolean
True if an element was removed.
|
code » |