Packagecom.ericfeminella.utils.iterators
Classpublic class ArrayIterator
InheritanceArrayIterator Inheritance com.ericfeminella.utils.iterators.Iterator

Concrete Iterator implementation which provides methods for iterating over an array



Public Methods
 MethodDefined by
  
hasNext():Boolean
Determines if there are elements remaining in the aggregate
ArrayIterator
  
next():*
Returns the next object element in the array
ArrayIterator
  
setAggregate(aggregate:*):void
Sets the aggregate array in which the ArrayIterator instance is to iterator over
ArrayIterator
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 object element in the array

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

Sets the aggregate array in which the ArrayIterator instance is to iterator over

Parameters
aggregate:*