Packagecom.ericfeminella.utils.iterators
Classpublic class ArrayCollectionIterator
InheritanceArrayCollectionIterator Inheritance com.ericfeminella.utils.iterators.Iterator

Concrete Iterator implementation which provides methods for iterating over an ArrayCollection



Public Methods
 MethodDefined by
  
hasNext():Boolean
Determines if there are elements remaining in the aggregate
ArrayCollectionIterator
  
next():*
Returns the next element in the collection
ArrayCollectionIterator
  
setAggregate(aggregate:*):void
Sets the aggregate object in which the Iterator instance is to traverse over
ArrayCollectionIterator
Method detail
hasNext()method
public override function hasNext():Boolean

Determines if there are elements remaining in the aggregate

Returns
Boolean — true if an element remains in the aggregate, false if not
next()method 
public override function next():*

Returns the next element in the collection

Returns
* — Next element in collection based on the current index
setAggregate()method 
public override function setAggregate(aggregate:*):void

Sets the aggregate object in which the Iterator instance is to traverse over

Parameters
aggregate:*