Packagecom.addicted2flash.util
Interfacepublic interface IQueue extends ICollection, IDisposable
ImplementorsArrayQueue, LinkedQueue, SortedArrayQueue

A collection designed for holding elements prior to processing. IQueue implementations generally do not allow insertion of null elements.



Public Methods
 MethodDefined by
 Inherited
add(o:*):void
Appends the specified element to the end of this list (optional operation).
ICollection
 Inherited
Adds all of the elements in the specified collection to this collection (optional operation).
ICollection
 Inherited
clear():void
Removes all of the elements from this list (optional operation).
ICollection
 Inherited
Returns a copy of the ICollection.
ICollection
 Inherited
contains(o:*):Boolean
Returns true if this list contains the specified element.
ICollection
 Inherited
Returns true if this collection contains all of the elements in the specified collection.
ICollection
 Inherited
dispose():void
free memory for garbage collection.
IDisposable
 Inherited
getAt(i:int):*
Returns the element at the specified position in this collection.
ICollection
 Inherited
isEmpty():Boolean
Returns true if this list contains no elements.
ICollection
 Inherited
Returns an iterator over the elements in this list.
ICollection
  
peek():*
Retrieves, but does not remove, the head of this queue, or returns null if this queue is empty.
IQueue
  
poll():*
Retrieves and removes the head of this queue, or returns null if this queue is empty.
IQueue
 Inherited
remove(o:*):Boolean
Removes the first occurrence in this list of the specified element (optional operation).
ICollection
 Inherited
Removes a single instance of the specified element from this collection, if it is present (optional operation)
ICollection
 Inherited
size():int
Returns the number of elements in this list.
ICollection
 Inherited
toArray():Array
Converts the collection into an array.
ICollection
Method detail
peek()method
public function peek():*

Retrieves, but does not remove, the head of this queue, or returns null if this queue is empty.

Returns
* — the head of this queue, or null if this queue is empty
poll()method 
public function poll():*

Retrieves and removes the head of this queue, or returns null if this queue is empty.

Returns
* — the head of this queue, or null if this queue is empty