Packagesekati.collections
Interfacepublic interface IQueue extends ICollection
ImplementorsArrayQueue, DisplayListQueue

IQueue defines the queue data structure. A queue is a special collection type in which elements are added to one end, and removed from the other end. You add elements via enqueue, and remove them via dequeue.



Public Properties
 PropertyDefined by
 Inheritedcount : uint
How many items exist within the collection.
ICollection
  head : Object
[read-only] The next object in queue, would be return and removed on a subsequent call to dequeue.
IQueue
 InheritedisEmpty : Boolean
Whether or not this collection is empty.
ICollection
Public Methods
 MethodDefined by
 Inherited
clear():void
Removes all items from the collection.
ICollection
  
dequeue():Object
Remove and returns the next object in the queue.
IQueue
  
enqueue(o:Object):void
Add an object to end of the queue.
IQueue
 Inherited
The iterator used to handle going through the collection.
ICollection
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
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