| Package | sekati.collections |
| Class | public class ArrayQueue |
| Inheritance | ArrayQueue ArrayCollection |
| Implements | IQueue |
| Property | Defined by | ||
|---|---|---|---|
![]() | array : Array
Return the collection array data
| ArrayCollection | |
![]() | count : 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 | ||
![]() | isEmpty : Boolean
Whether or not this collection is empty.
| ArrayCollection | |
| Method | Defined by | ||
|---|---|---|---|
|
ArrayQueue(array:Array = null)
ArrayQueue Constructor creates a new
ArrayQueue. | ArrayQueue | ||
![]() |
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 | ||
![]() |
Returns an IIterator which traverses the items in the collection
starting at index 0, and going to index length-1.
| ArrayCollection | |
| head | property |
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
| 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.
array:Array (default = null) |
| dequeue | () | method |
public function dequeue():ObjectRemove and returns the next object in the queue.
ReturnsObject |
| enqueue | () | method |
public function enqueue(o:Object):voidAdd an object to end of the queue.
Parameterso:Object |