Packagecom.addicted2flash.util
Classpublic class AbstractArrayCollection
ImplementsICollection
SubclassesAbstractArrayList, AbstractArraySet, ArrayQueue, ArrayStack

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



Public Properties
 PropertyDefined by
  list : Array
[read-only] return the internal list.
AbstractArrayCollection
Protected Properties
 PropertyDefined by
  _list : Array
AbstractArrayCollection
Public Methods
 MethodDefined by
  
AbstractArrayCollection(field:Array = null)
Create a new AbstractArrayCollection
AbstractArrayCollection
  
add(o:*):void
Appends the specified element to the end of this list (optional operation).
AbstractArrayCollection
  
Adds all of the elements in the specified collection to this collection (optional operation).
AbstractArrayCollection
  
clear():void
Removes all of the elements from this list (optional operation).
AbstractArrayCollection
  
Returns a copy of the ICollection.
AbstractArrayCollection
  
contains(o:*):Boolean
Returns true if this list contains the specified element.
AbstractArrayCollection
  
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
  
isEmpty():Boolean
Returns true if this list contains no elements.
AbstractArrayCollection
  
Returns an iterator over the elements in this list.
AbstractArrayCollection
  
remove(o:*):Boolean
Removes the first occurrence in this list of the specified element (optional operation).
AbstractArrayCollection
  
Removes a single instance of the specified element from this collection, if it is present (optional operation)
AbstractArrayCollection
  
size():int
Returns the number of elements in this list.
AbstractArrayCollection
  
toArray():Array
Converts the collection into an array.
AbstractArrayCollection
Property detail
_listproperty
protected var _list:Array
listproperty 
list:Array  [read-only]

return the internal list.

Implementation
    public function get list():Array
Constructor detail
AbstractArrayCollection()constructor
public function AbstractArrayCollection(field:Array = null)

Create a new AbstractArrayCollection

Parameters
field:Array (default = null) — (optional) an existing Array
Method detail
add()method
public function add(o:*):void

Appends the specified element to the end of this list (optional operation).

Parameters
o:*
addAll()method 
public function addAll(c:ICollection):void

Adds all of the elements in the specified collection to this collection (optional operation).

Parameters
c:ICollectionCollection containing elements to be added to this collection
clear()method 
public function clear():void

Removes all of the elements from this list (optional operation).

clone()method 
public function clone():ICollection

Returns a copy of the ICollection.

Returns
ICollection — a copy of the ICollection
contains()method 
public function contains(o:*):Boolean

Returns true if this list contains the specified element.

Parameters
o:*

Returns
Boolean — true if this list contains the specified element.
containsAll()method 
public function containsAll(c:ICollection):Boolean

Returns true if this collection contains all of the elements in the specified collection.

Parameters
c:ICollectionCollection collection to be checked for containment in this collection

Returns
Boolean — true if this collection contains all of the elements in the specified collection
dispose()method 
public function dispose():void

free memory for garbage collection.

getAt()method 
public function getAt(i:int):*

Returns the element at the specified position in this collection.

Parameters
i:int — index

Returns
*
isEmpty()method 
public function isEmpty():Boolean

Returns true if this list contains no elements.

Returns
Boolean — true if this list contains no elements.
iterator()method 
public function iterator():IIterator

Returns an iterator over the elements in this list.

Returns
IIterator — IIterator
remove()method 
public function remove(o:*):Boolean

Removes the first occurrence in this list of the specified element (optional operation).

Parameters
o:*

Returns
Boolean — true if this collection changed as a result of the call
removeAll()method 
public function removeAll(c:ICollection):Boolean

Removes a single instance of the specified element from this collection, if it is present (optional operation)

Parameters
c:ICollectionCollection containing elements to be removed from this collection

Returns
Boolean — true if this collection changed as a result of the call
size()method 
public function size():int

Returns the number of elements in this list.

Returns
int — number of elements in this list.
toArray()method 
public function toArray():Array

Converts the collection into an array.

Returns
Array — an array.