Packagesekati.collections
Classpublic class ArrayQueue
InheritanceArrayQueue Inheritance ArrayCollection
ImplementsIQueue

Array based Queue data structure.



Public Properties
 PropertyDefined by
 Inheritedarray : Array
Return the collection array data
ArrayCollection
 Inheritedcount : uint
How many items exist within the collection.
ArrayCollection
  head : Object
[read-only] The next object in queue, would be return and removed on a subsequent call to dequeue.
ArrayQueue
 InheritedisEmpty : Boolean
Whether or not this collection is empty.
ArrayCollection
Protected Properties
 PropertyDefined by
 Inherited_array : Array
ArrayCollection
Public Methods
 MethodDefined by
  
ArrayQueue(array:Array = null)
ArrayQueue Constructor creates a new ArrayQueue.
ArrayQueue
 Inherited
clear():void
Removes all items from the collection.
ArrayCollection
  
dequeue():Object
Remove and returns the next object in the queue.
ArrayQueue
  
enqueue(o:Object):void
Add an object to end of the queue.
ArrayQueue
 Inherited
Returns an IIterator which traverses the items in the collection starting at index 0, and going to index length-1.
ArrayCollection
Property detail
headproperty
head:Object  [read-only]

The next object in queue, would be return and removed on a subsequent call to dequeue.

Implementation
    public function get head():Object
Constructor detail
ArrayQueue()constructor
public function ArrayQueue(array:Array = null)

ArrayQueue Constructor creates a new ArrayQueue. You may have it wrap an existing Array or the constructor will create an empty Array for you.

Parameters
array:Array (default = null)
Method detail
dequeue()method
public function dequeue():Object

Remove and returns the next object in the queue.

Returns
Object
enqueue()method 
public function enqueue(o:Object):void

Add an object to end of the queue.

Parameters
o:Object