| Package | ch.capi.data |
| Class | public class QueueList |
| Inheritance | QueueList ArrayList Object |
| Implements | IQueue |
IQueue object.
| Property | Defined By | ||
|---|---|---|---|
![]() | length : int [read-only]
Defines the number of elements contained in
the ArrayList. | ArrayList | |
| nextElement : * [read-only]
Defines the next element that will be removed
from the data structure. | QueueList | ||
| Method | Defined By | ||
|---|---|---|---|
QueueList(initialData:Array = null)
Creates a new QueueList object. | QueueList | ||
add(element:*):void
Add an element to the data structure. | QueueList | ||
![]() | addElement(element:*):void
Add an element in the ArrayList. | ArrayList | |
![]() | addElementAt(element:*, index:int):void
Add an element in the ArrayList at the specified index. | ArrayList | |
![]() | clear():void
Removes all the elements contained in this ArrayList. | ArrayList | |
![]() | contains(element:*, compare:Function = null):Boolean
Returns true if the specified element is contained in the IList
or false otherwise. | ArrayList | |
![]() | getElementAt(index:int):*
Get the element at the specified index. | ArrayList | |
![]() | getElementIndex(element:*):int
Get the index of the specified element. | ArrayList | |
getFirstElement():*
Get the first element of the QueueList. | QueueList | ||
getLastElement():*
Get the last element of the QueueList. | QueueList | ||
![]() | isEmpty():Boolean
Get if the structure is empty or not. | ArrayList | |
remove():*
Removes the first element of the QueueList. | QueueList | ||
![]() | removeElement(element:*):void
Removes an element from the ArrayList. | ArrayList | |
![]() | removeElementAt(index:int):*
Removes the element at the specified index from the ArrayList. | ArrayList | |
![]() | toArray():Array
Retrieves an Array from the ArrayList. | ArrayList | |
![]() | toString():String
Displays the ArrayList in a String. | ArrayList | |
| nextElement | property |
nextElement:* [read-only] Defines the next element that will be removed from the data structure.
public function get nextElement():*| QueueList | () | Constructor |
public function QueueList(initialData:Array = null)
Creates a new QueueList object.
initialData:Array (default = null) — The Array with the elements to initialize. All the elements
contained in the Array will be added in the QueueList.
|
| add | () | method |
public function add(element:*):voidAdd an element to the data structure.
Parameters
element:* — The element to add.
|
| getFirstElement | () | method |
public function getFirstElement():*
Get the first element of the QueueList.
* — The first element.
|
| getLastElement | () | method |
public function getLastElement():*
Get the last element of the QueueList.
* — The last element.
|
| remove | () | method |
public function remove():*
Removes the first element of the QueueList.
* — The element removed.
|