1.0.1 • Published 7 years ago

runner-runner-collection v1.0.1

Weekly downloads
3
License
BSD-2-Clause
Repository
github
Last release
7 years ago

Queue

Class Queue

Kind: global class

queue.dequeue() ⇒ *

Removes and returns an object from the head of the Queue

Kind: instance method of Queue
Returns: * - object from the head of the Queue

queue.enqueue(object)

Adds an object to the tail of the Queue

Kind: instance method of Queue

ParamTypeDescription
object*to be added to the tail of the Queue

queue.peek() ⇒ *

Returns an object from the head of the Queue, but does not remove it

Kind: instance method of Queue
Returns: * - object from the head of the Queue

queue.clear()

Removes all objects from the Queue

Kind: instance method of Queue

queue.contains(object)

Tests if an object in the Queue

Kind: instance method of Queue

ParamTypeDescription
objectBooleanto look

queue.size() ⇒ Number

Return a size of the Queue

Kind: instance method of Queue
Returns: Number - size of the Queue