Packagesekati.collections
Classpublic class ArrayIterator
ImplementsIDestructiveIterator, IIterator

Array based Iterator



Protected Properties
 PropertyDefined by
  _array : Array
ArrayIterator
Public Methods
 MethodDefined by
  
ArrayIterator(array:Array)
ArrayIterator Constructor
ArrayIterator
  
hasNext():Boolean
Check if iterator has a next element.
ArrayIterator
  
next():Object
Remove and return the next item in the collection.
ArrayIterator
  
peek():Object
Return the next item, but don't remove it yet.
ArrayIterator
Property detail
_arrayproperty
protected var _array:Array
Constructor detail
ArrayIterator()constructor
public function ArrayIterator(array:Array)

ArrayIterator Constructor

Parameters
array:Array — Array of data used in iteration.
Method detail
hasNext()method
public function hasNext():Boolean

Check if iterator has a next element.

Returns
Boolean — Boolean
next()method 
public function next():Object

Remove and return the next item in the collection.

Returns
Object
peek()method 
public function peek():Object

Return the next item, but don't remove it yet.

Returns
Object