goog.structs.Queue
Classgoog.structs.Queue()
Class for FIFO Queue data structure.
.clear()
Removes all elements from the queue.
.contains(obj)
Returns true if the given value is in the queue.
obj
{*}
boolean
}
.dequeue()
Retrieves and removes the head of this queue.
.enqueue(element)
Puts the specified element on this queue.
element
{*}
.getCount()
Returns the number of elements in this queue.
number
}
.getValues()
Returns all the values in the queue.
Array
}
.isEmpty()
Returns true if this queue contains no elements.
boolean
}
.peek()
Retrieves but does not remove the head of this queue.
.remove(obj)
Removes the first occurrence of a particular value from the queue.
obj
{*}
boolean
}