Packagecom.addicted2flash.util
Classpublic class AbstractArrayList
InheritanceAbstractArrayList Inheritance AbstractArrayCollection
ImplementsIList
SubclassesArrayList

This class provides a skeletal implementation of the IList interface for arrays to minimize the effort required to implement this interface.



Public Properties
 PropertyDefined by
 Inheritedlist : Array
return the internal list.
AbstractArrayCollection
  listIterator : IListIterator
[read-only] Returns the IListIterator of the IList.
AbstractArrayList
Protected Properties
 PropertyDefined by
 Inherited_list : Array
AbstractArrayCollection
Public Methods
 MethodDefined by
  
AbstractArrayList(field:Array = null)
Create a new AbstractArrayList
AbstractArrayList
 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
  
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
 Inherited
clear():void
Removes all of the elements from this list (optional operation).
AbstractArrayCollection
 Inherited
Returns a copy of the ICollection.
AbstractArrayCollection
 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
  
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
  
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
  
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
 Inherited
size():int
Returns the number of elements in this list.
AbstractArrayCollection
  
subList(fromIndex:int, toIndex:int):IList
Returns a view of the portion of this list between the specified fromIndex, inclusive, and toIndex, exclusive.
AbstractArrayList
  
swap(o1:*, o2:*):Boolean
AbstractArrayList
  
swapAt(i1:int, i2:int):Boolean
AbstractArrayList
 Inherited
toArray():Array
Converts the collection into an array.
AbstractArrayCollection
Property detail
listIteratorproperty
listIterator:IListIterator  [read-only]

Returns the IListIterator of the IList.

Implementation
    public function get listIterator():IListIterator
Constructor detail
AbstractArrayList()constructor
public function AbstractArrayList(field:Array = null)

Create a new AbstractArrayList

Parameters
field:Array (default = null) — an existing Array
Method detail
addAllAt()method
public function 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.

Parameters
i:int — index
 
c:ICollectionICollection
addAt()method 
public function addAt(i:int, o:*):void

Inserts the specified element at the specified position in this list (optional operation).

Parameters
i:int — index
 
o:*
indexOf()method 
public function 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.

Parameters
o:*

Returns
int — index
lastIndexOf()method 
public function 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.

Parameters
o:*

Returns
int — index
removeArea()method 
public function removeArea(fromIndex:int, toIndex:int):IList

Removes an area in the current list.

Parameters
fromIndex:int — low endpoint (including) of the list
 
toIndex:int — high endpoint (excluding) of the list

Returns
IList — the removed area
removeAt()method 
public function removeAt(i:int):*

Removes the element at the specified position in this list (optional operation).

Parameters
i:int — index

Returns
* — the removed object
setAt()method 
public function setAt(i:int, o:*):*

Replaces the element at the specified position in this list with the specified element (optional operation).

Parameters
i:int — index
 
o:*

Returns
* — the replaced object
subList()method 
public function subList(fromIndex:int, toIndex:int):IList

Returns a view of the portion of this list between the specified fromIndex, inclusive, and toIndex, exclusive. (If toIndex >= fromIndex, the returned list is empty.)

Parameters
fromIndex:int — low endpoint (including) of the subList
 
toIndex:int — high endpoint (excluding) of the subList

Returns
IList — a view of the specified range within this list
swap()method 
public function swap(o1:*, o2:*):Boolean

Parameters
o1:*
 
o2:*

Returns
Boolean
swapAt()method 
public function swapAt(i1:int, i2:int):Boolean

Parameters
i1:int
 
i2:int

Returns
Boolean