Packageorg.servebox.commons.collection
Classpublic class ArrayList
InheritanceArrayList Inheritance AbstractCollection Inheritance BasicObject
ImplementsIList

Implementation of the IList interface.



Public Properties
 PropertyDefined by
 InheritedinternalInstanceId : uint
The internal instance id of the object.
BasicObject
Protected Properties
 PropertyDefined by
 Inherited_list : Array
AbstractCollection
Public Methods
 MethodDefined by
  
ArrayList(collection:ICollection = null)
ArrayList
 Inherited
add(o:IBasicObject):Boolean
Adds the specified element to the collection.
AbstractCollection
 Inherited
addAll(c:ICollection):Boolean
Adds the specified elements to the collection.
AbstractCollection
  
addAllAt(i:int, c:ICollection):Boolean
Adds the specified elements to the collection at the specified index.
ArrayList
  
addItemAt(i:int, o:IBasicObject):Boolean
Adds the specified element to the collection at the specified index.
ArrayList
 Inherited
clear():void
Empties the collection.
AbstractCollection
 Inherited
Indicates whether the collection contains the specified element.
AbstractCollection
 Inherited
Indicates whether the collection contains the specified elements.
AbstractCollection
 Inherited
equals(o:IBasicObject):Boolean
Object comparison mechanism.
AbstractCollection
 Inherited
fromArray(ar:Array):void
Sets the collection content using an Array of elements.
AbstractCollection
 Inherited
Generates a unique unsigned integer id at instanciation
BasicObject
  
Retrieves the element of the collection at the specified index.
ArrayList
 Inherited
hashCode():int
Returns the hashcode of the object.
BasicObject
  
Retrieves the index of the specified element of the collection.
ArrayList
 Inherited
isEmpty():Boolean
Indicates whether the collection contains elements.
AbstractCollection
 Inherited
Retrieves an iterator over a set of objects.
AbstractCollection
  
Retrieves the index of the last element of the collection.
ArrayList
 Inherited
remove(o:IBasicObject):Boolean
Removes the specified element from the collection.
AbstractCollection
 Inherited
Removes the specified elements from the collection.
AbstractCollection
  
Removes the specified element from the collection at the specified index.
ArrayList
  
Removes from the list all the elements that are not contained in the specified collection.
ArrayList
  
setItem(i:int, o:IBasicObject):Boolean
Replaces the specified element from the collection at the specified index.
ArrayList
 Inherited
size():int
The number of elements in the collection.
AbstractCollection
  
subList(fromIndex:int, toIndex:int):IList
Retrieves the part of the list at a specified range( fromIndex is inclusive, toIndex is exclusive ).
ArrayList
 Inherited
toArray():Array
Retrieves the elements of the collection into an Array instance.
AbstractCollection
 Inherited
toString():String
Returns the string representation of the specified object.
BasicObject
Protected Methods
 MethodDefined by
 Inherited
AbstractCollection
Constructor detail
ArrayList()constructor
public function ArrayList(collection:ICollection = null)Parameters
collection:ICollection (default = null)
Method detail
addAllAt()method
public function addAllAt(i:int, c:ICollection):Boolean

Adds the specified elements to the collection at the specified index.

Parameters
i:int
 
c:ICollection

Returns
Boolean
addItemAt()method 
public function addItemAt(i:int, o:IBasicObject):Boolean

Adds the specified element to the collection at the specified index.

Parameters
i:int
 
o:IBasicObject

Returns
Boolean
getItemAt()method 
public function getItemAt(i:int):IBasicObject

Retrieves the element of the collection at the specified index.

Parameters
i:int

Returns
IBasicObject
indexOf()method 
public function indexOf(o:IBasicObject):int

Retrieves the index of the specified element of the collection.

Parameters
o:IBasicObject

Returns
int
lastIndexOf()method 
public function lastIndexOf(o:IBasicObject):int

Retrieves the index of the last element of the collection.

Parameters
o:IBasicObject

Returns
int
removeAt()method 
public function removeAt(i:int):IBasicObject

Removes the specified element from the collection at the specified index.

Parameters
i:int

Returns
IBasicObject
retainAll()method 
public function retainAll(c:ICollection):Boolean

Removes from the list all the elements that are not contained in the specified collection.

Parameters
c:ICollection

Returns
Booleantrue if the list has changed.
setItem()method 
public function setItem(i:int, o:IBasicObject):Boolean

Replaces the specified element from the collection at the specified index.

Parameters
i:int
 
o:IBasicObject

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

Retrieves the part of the list at a specified range( fromIndex is inclusive, toIndex is exclusive ).

Parameters
fromIndex:int
 
toIndex:int

Returns
IList