Packagech.capi.data
Interfacepublic interface IQueue extends IDataStructure , IList
Implementors QueueList

Represents a FIFO list.



Public Properties
 PropertyDefined By
 Inheritedlength : int
[read-only] Defines the number of elements contained in the IList.
IList
 InheritednextElement : *
[read-only] Defines the next element that will be removed from the data structure.
IDataStructure
Public Methods
 MethodDefined By
 Inherited
add(element:*):void
Add an element to the data structure.
IDataStructure
 Inherited
addElement(element:*):void
Add an element in the IList.
IList
 Inherited
addElementAt(element:*, index:int):void
Add an element in the IList at the specified index.
IList
 Inherited
clear():void
Removes all the elements from the data structure.
IDataStructure
 Inherited
clear():void
Removes all the elements contained in this IList.
IList
 Inherited
contains(element:*, compare:Function = null):Boolean
Returns true if the specified element is contained in the IList or false otherwise.
IList
 Inherited
getElementAt(index:int):*
Get the element at the specified index.
IList
 Inherited
getElementIndex(element:*):int
Get the index of the specified element.
IList
  
Get the first element of the IQueue.
IQueue
  
Get the last element of the IQueue.
IQueue
 Inherited
isEmpty():Boolean
Get if the structure is empty or not.
IDataStructure
 Inherited
remove():*
Removes an element from the data structure.
IDataStructure
 Inherited
removeElement(element:*):void
Removes an element from the IList.
IList
 Inherited
removeElementAt(index:int):*
Removes the element at the specified index from the IList.
IList
 Inherited
toArray():Array
Retrieves an Array from the IList.
IList
Method Detail
getFirstElement()method
public function getFirstElement():*

Get the first element of the IQueue.

Returns
* — The first element.
getLastElement()method 
public function getLastElement():*

Get the last element of the IQueue.

Returns
* — The last element.