Packagech.capi.data
Classpublic class QueueList
InheritanceQueueList Inheritance ArrayList
ImplementsIQueue

Represents a basic implementation of a IQueue object.



Public Properties
 PropertyDefined by
 Inheritedlength : int
Defines the number of elements contained into the ArrayList.
ArrayList
  nextElement : *
[read-only] Defines the next element that will be removed from the data structure.
QueueList
Public Methods
 MethodDefined by
  
QueueList(initialData:Array = null)
Creates a new QueueList object.
QueueList
  
add(element:*):void
Add an element to the data structure.
QueueList
 Inherited
addElement(element:*):void
Add an element into the ArrayList.
ArrayList
 Inherited
addElementAt(element:*, index:int):void
Add an element into the ArrayList at the specified index.
ArrayList
 Inherited
clear():void
Removes all the elements contained into this ArrayList.
ArrayList
 Inherited
getElementAt(index:int):*
Get the element at the specified index.
ArrayList
 Inherited
getElementIndex(element:*):int
Get the index of the specified element.
ArrayList
  
Get the first element of the QueueList.
QueueList
  
Get the last element of the QueueList.
QueueList
 Inherited
isEmpty():Boolean
Get if the structure is empty or not.
ArrayList
  
remove():*
Removes the first element of the QueueList.
QueueList
 Inherited
removeElement(element:*):void
Removes an element from the ArrayList.
ArrayList
 Inherited
removeElementAt(index:int):*
Removes the element at the specified index from the ArrayList.
ArrayList
 Inherited
toArray():Array
Retrieves an Array from the ArrayList.
ArrayList
 Inherited
toString():String
Displays the ArrayList into a String.
ArrayList
Property detail
nextElementproperty
nextElement:*  [read-only]

Defines the next element that will be removed from the data structure.

Implementation
    public function get nextElement():*
Constructor detail
QueueList()constructor
public function QueueList(initialData:Array = null)

Creates a new QueueList object.

Parameters
initialData:Array (default = null) — The Array with the elements to initialize. All the elements contained into the Array will be added into the QueueList.
Method detail
add()method
public function add(element:*):void

Add an element to the data structure.

Parameters
element:* — The element to add.
getFirstElement()method 
public function getFirstElement():*

Get the first element of the QueueList.

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

Get the last element of the QueueList.

Returns
* — The last element.
remove()method 
public function remove():*

Removes the first element of the QueueList.

Returns
* — The element removed.