Packagesekati.collections
Classpublic class ArrayCollection
ImplementsICollection
SubclassesArrayQueue, ArrayStack

Array based Collection



Public Properties
 PropertyDefined by
  array : Array
[read-only] Return the collection array data
ArrayCollection
  count : uint
[read-only] How many items exist within the collection.
ArrayCollection
  isEmpty : Boolean
[read-only] Whether or not this collection is empty.
ArrayCollection
Protected Properties
 PropertyDefined by
  _array : Array
ArrayCollection
Public Methods
 MethodDefined by
  
ArrayCollection(array:Array)
ArrayCollection Constructor
ArrayCollection
  
clear():void
Removes all items from the collection.
ArrayCollection
  
Returns an IIterator which traverses the items in the collection starting at index 0, and going to index length-1.
ArrayCollection
Property detail
_arrayproperty
protected var _array:Array
arrayproperty 
array:Array  [read-only]

Return the collection array data

Implementation
    public function get array():Array
countproperty 
count:uint  [read-only]

How many items exist within the collection.

Implementation
    public function get count():uint
isEmptyproperty 
isEmpty:Boolean  [read-only]

Whether or not this collection is empty.

Implementation
    public function get isEmpty():Boolean
Constructor detail
ArrayCollection()constructor
public function ArrayCollection(array:Array)

ArrayCollection Constructor

Parameters
array:Array — Array of data used in collection.
Method detail
clear()method
public function clear():void

Removes all items from the collection.

getIterator()method 
public function getIterator():IIterator

Returns an IIterator which traverses the items in the collection starting at index 0, and going to index length-1.

Returns
IIterator