| Package | com.addicted2flash.util |
| Class | public class ArrayList |
| Inheritance | ArrayList AbstractArrayList AbstractArrayCollection |
| Implements | IList |
| Subclasses | ObservableArrayList |
| Method | Defined by | ||
|---|---|---|---|
|
ArrayList(field:Array = null)
Create a new
ArrayList. | ArrayList | ||
![]() |
add(o:*):void
Appends the specified element to the end of this list (optional operation).
| AbstractArrayCollection | |
![]() |
addAll(c:ICollection):void
Adds all of the elements in the specified collection to this collection (optional operation).
| AbstractArrayCollection | |
![]() |
addAllAt(i:int, c:ICollection):void
Adds all of the elements in the specified collection to this collection at a specified
position in this list.
| AbstractArrayList | |
![]() |
addAt(i:int, o:*):void
Inserts the specified element at the specified position in this list (optional operation).
| AbstractArrayList | |
![]() |
clear():void
Removes all of the elements from this list (optional operation).
| AbstractArrayCollection | |
|
| ArrayList | ||
![]() |
contains(o:*):Boolean
Returns true if this list contains the specified element.
| AbstractArrayCollection | |
![]() |
containsAll(c:ICollection):Boolean
Returns true if this collection contains all of the elements in the specified collection.
| AbstractArrayCollection | |
![]() |
dispose():void
free memory for garbage collection.
| AbstractArrayCollection | |
![]() |
getAt(i:int):*
Returns the element at the specified position in this collection.
| AbstractArrayCollection | |
![]() |
indexOf(o:*):int
Returns the index in this list of the first occurrence of the specified element, or -1 if this list
does not contain this element.
| AbstractArrayList | |
![]() |
isEmpty():Boolean
Returns true if this list contains no elements.
| AbstractArrayCollection | |
![]() |
Returns an iterator over the elements in this list.
| AbstractArrayCollection | |
![]() |
lastIndexOf(o:*):int
Returns the index in this list of the last occurrence of the specified element, or -1 if this list
does not contain this element.
| AbstractArrayList | |
![]() |
remove(o:*):Boolean
Removes the first occurrence in this list of the specified element (optional operation).
| AbstractArrayCollection | |
![]() |
removeAll(c:ICollection):Boolean
Removes a single instance of the specified element from this collection, if it is present (optional operation)
| AbstractArrayCollection | |
![]() |
removeArea(fromIndex:int, toIndex:int):IList
Removes an area in the current list.
| AbstractArrayList | |
![]() |
removeAt(i:int):*
Removes the element at the specified position in this list (optional operation).
| AbstractArrayList | |
![]() |
setAt(i:int, o:*):*
Replaces the element at the specified position in this list with the specified element (optional operation).
| AbstractArrayList | |
![]() |
size():int
Returns the number of elements in this list.
| AbstractArrayCollection | |
|
| ArrayList | ||
![]() |
swap(o1:*, o2:*):Boolean
| AbstractArrayList | |
![]() |
swapAt(i1:int, i2:int):Boolean
| AbstractArrayList | |
![]() |
toArray():Array
Converts the collection into an array.
| AbstractArrayCollection | |
|
toString():String
String representation of
ArrayList. | ArrayList | ||
| ArrayList | () | constructor |
public function ArrayList(field:Array = null)
Create a new ArrayList.
field:Array (default = null) — (optional) an existing Array
|
| clone | () | method |
| subList | () | method |
public override function subList(fromIndex:int, toIndex:int):IListParameters
fromIndex:int |
|
toIndex:int |
IList |
| toString | () | method |
public function toString():String
String representation of ArrayList.
String — String representation of ArrayList
|