Packagecom.addicted2flash.util
Classpublic class ArrayList
InheritanceArrayList Inheritance AbstractArrayList Inheritance AbstractArrayCollection
ImplementsIList
SubclassesObservableArrayList

Array based list. Implements all optional list operations, and permits all elements, including null.



Public Properties
 PropertyDefined by
 Inheritedlist : Array
return the internal list.
AbstractArrayCollection
 InheritedlistIterator : IListIterator
Returns the IListIterator of the IList.
AbstractArrayList
Protected Properties
 PropertyDefined by
 Inherited_list : Array
AbstractArrayCollection
Public Methods
 MethodDefined by
  
ArrayList(field:Array = null)
Create a new ArrayList.
ArrayList
 Inherited
add(o:*):void
Appends the specified element to the end of this list (optional operation).
AbstractArrayCollection
 Inherited
Adds all of the elements in the specified collection to this collection (optional operation).
AbstractArrayCollection
 Inherited
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
 Inherited
addAt(i:int, o:*):void
Inserts the specified element at the specified position in this list (optional operation).
AbstractArrayList
 Inherited
clear():void
Removes all of the elements from this list (optional operation).
AbstractArrayCollection
  
ArrayList
 Inherited
contains(o:*):Boolean
Returns true if this list contains the specified element.
AbstractArrayCollection
 Inherited
Returns true if this collection contains all of the elements in the specified collection.
AbstractArrayCollection
 Inherited
dispose():void
free memory for garbage collection.
AbstractArrayCollection
 Inherited
getAt(i:int):*
Returns the element at the specified position in this collection.
AbstractArrayCollection
 Inherited
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
 Inherited
isEmpty():Boolean
Returns true if this list contains no elements.
AbstractArrayCollection
 Inherited
Returns an iterator over the elements in this list.
AbstractArrayCollection
 Inherited
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
 Inherited
remove(o:*):Boolean
Removes the first occurrence in this list of the specified element (optional operation).
AbstractArrayCollection
 Inherited
Removes a single instance of the specified element from this collection, if it is present (optional operation)
AbstractArrayCollection
 Inherited
removeArea(fromIndex:int, toIndex:int):IList
Removes an area in the current list.
AbstractArrayList
 Inherited
removeAt(i:int):*
Removes the element at the specified position in this list (optional operation).
AbstractArrayList
 Inherited
setAt(i:int, o:*):*
Replaces the element at the specified position in this list with the specified element (optional operation).
AbstractArrayList
 Inherited
size():int
Returns the number of elements in this list.
AbstractArrayCollection
  
subList(fromIndex:int, toIndex:int):IList
ArrayList
 Inherited
swap(o1:*, o2:*):Boolean
AbstractArrayList
 Inherited
swapAt(i1:int, i2:int):Boolean
AbstractArrayList
 Inherited
toArray():Array
Converts the collection into an array.
AbstractArrayCollection
  
toString():String
String representation of ArrayList.
ArrayList
Constructor detail
ArrayList()constructor
public function ArrayList(field:Array = null)

Create a new ArrayList.

Parameters
field:Array (default = null) — (optional) an existing Array
Method detail
clone()method
public override function clone():ICollection

Returns
ICollection
subList()method 
public override function subList(fromIndex:int, toIndex:int):IList

Parameters
fromIndex:int
 
toIndex:int

Returns
IList
toString()method 
public function toString():String

String representation of ArrayList.

Returns
String — String representation of ArrayList