Package | sekati.collections |
Interface | public interface IQueue extends ICollection |
Implementors | ArrayQueue, DisplayListQueue |
enqueue
,
and remove them via dequeue
.
Property | Defined by | ||
---|---|---|---|
count : 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 | ||
isEmpty : Boolean
Whether or not this collection is empty.
| ICollection |
Method | Defined by | ||
---|---|---|---|
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 | ||
The iterator used to handle going through the collection.
| ICollection |
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
dequeue | () | method |
public function dequeue():Object
Remove and returns the next object in the queue.
ReturnsObject |
enqueue | () | method |
public function enqueue(o:Object):void
Add an object to end of the queue.
Parameterso:Object |