Packagecom.boostworthy.collections.iterators
Classpublic class ForwardArrayIterator
ImplementsIIterator

Iterates through an array by starting with '0' and then incrementing the index until the array length is reached.

See also

com.boostworthy.collections.iterators.IIterator


Public Methods
 MethodDefined by
  
ForwardArrayIterator(aData:Array)
Constructor.
ForwardArrayIterator
  
hasNext():Boolean
Returns a boolean value indicating whether or not the collection has another element beyond the current index.
ForwardArrayIterator
  
next():Object
Returns the element at the current index and then moves on to the next.
ForwardArrayIterator
  
reset():void
Resets this iterator back to an index of '0'.
ForwardArrayIterator
Constructor detail
ForwardArrayIterator()constructor
public function ForwardArrayIterator(aData:Array)

Constructor.

Parameters
aData:Array — An array of data to be iterated through by this object.
Method detail
hasNext()method
public function hasNext():Boolean

Returns a boolean value indicating whether or not the collection has another element beyond the current index.

Returns
Boolean — A boolean value indicating whether or not the collection has another element beyond the current index.
next()method 
public function next():Object

Returns the element at the current index and then moves on to the next.

Returns
Object — The element at the current index.
reset()method 
public function reset():void

Resets this iterator back to an index of '0'.