Package | ch.capi.data |
Interface | public interface IList |
Subinterfaces | IQueue, IStack |
Implementors | ArrayList |
Property | Defined by | ||
---|---|---|---|
length : int [read-only]
Defines the number of elements contained into
the
IList . | IList |
Method | Defined by | ||
---|---|---|---|
addElement(element:*):void
Add an element into the
IList . | IList | ||
addElementAt(element:*, index:int):void
Add an element into the
IList at the specified index. | IList | ||
clear():void
Removes all the elements contained into this
IList . | IList | ||
getElementAt(index:int):*
Get the element at the specified index.
| IList | ||
getElementIndex(element:*):int
Get the index of the specified element.
| IList | ||
removeElement(element:*):void
Removes an element from the
IList . | IList | ||
removeElementAt(index:int):*
Removes the element at the specified index from the
IList . | IList | ||
toArray():Array
Retrieves an
Array from the IList . | IList |
length | property |
length:int
[read-only]
Defines the number of elements contained into
the IList
.
public function get length():int
addElement | () | method |
public function addElement(element:*):void
Add an element into the IList
.
element:* — The element to add.
|
addElementAt | () | method |
public function addElementAt(element:*, index:int):void
Add an element into the IList
at the specified index.
element:* — The element to add.
|
|
index:int — The index of the element.
|
clear | () | method |
public function clear():void
Removes all the elements contained into this IList
.
getElementAt | () | method |
public function getElementAt(index:int):*
Get the element at the specified index.
Parametersindex:int — The index of the element to get.
|
* — The element at the specified index.
|
getElementIndex | () | method |
public function getElementIndex(element:*):int
Get the index of the specified element.
Parameterselement:* — The element to find.
|
int — The index of the element or -1 if the element is
not found.
|
removeElement | () | method |
public function removeElement(element:*):void
Removes an element from the IList
.
element:* — The element to remove.
|
removeElementAt | () | method |
public function removeElementAt(index:int):*
Removes the element at the specified index from the IList
.
index:int — The index of the element to remove.
|
* — The removed element.
|
toArray | () | method |
public function toArray():Array
Retrieves an Array
from the IList
.
Array — An Array containing the objects.
|