Packagecom.boostworthy.collections.iterators
Classpublic class ReverseArrayIterator
ImplementsIIterator

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

See also

com.boostworthy.collections.iterators.IIterator


Public Methods
 MethodDefined by
  
ReverseArrayIterator(aData:Array)
Constructor.
ReverseArrayIterator
  
hasNext():Boolean
Returns a boolean value indicating whether or not the collection has another element beyond the current index.
ReverseArrayIterator
  
next():Object
Returns the element at the current index and then moves on to the next.
ReverseArrayIterator
  
reset():void
Resets this iterator back to the last index of the array.
ReverseArrayIterator
Constructor detail
ReverseArrayIterator()constructor
public function ReverseArrayIterator(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 the last index of the array.