Packagecom.addicted2flash.util.iterator
Classpublic class CollectionIterator
ImplementsIIterator

Iterator for traversing ICollections.



Protected Properties
 PropertyDefined by
  _collection : ICollection
CollectionIterator
  _count : int
CollectionIterator
  _field : Array
CollectionIterator
  _n : int
CollectionIterator
Public Methods
 MethodDefined by
  
Create a new CollectionIterator.
CollectionIterator
  
hasNext():Boolean
Retrieves boolean flag whether the Iterator has a next object in its list
CollectionIterator
  
next():*
Retrieves next object in data-structure
CollectionIterator
  
remove():void
Removes the last element from the underlying collection returned by the iterator.
CollectionIterator
Property detail
_collectionproperty
protected var _collection:ICollection
_countproperty 
protected var _count:int
_fieldproperty 
protected var _field:Array
_nproperty 
protected var _n:int
Constructor detail
CollectionIterator()constructor
public function CollectionIterator(c:ICollection)

Create a new CollectionIterator.

Parameters
c:ICollectionICollection
Method detail
hasNext()method
public function hasNext():Boolean

Retrieves boolean flag whether the Iterator has a next object in its list

Returns
Boolean — Boolean flag whether the Iterator has a next object in its list
next()method 
public function next():*

Retrieves next object in data-structure

Returns
* — next object in data-structure
remove()method 
public function remove():void

Removes the last element from the underlying collection returned by the iterator.