Packagecom.boostworthy.collections.iterators
Interfacepublic interface IIterator
ImplementorsForwardArrayIterator, NullIterator, ReverseArrayIterator

The 'IIterator' interface defines a common interface for all iterator objects.



Public Methods
 MethodDefined by
  
hasNext():Boolean
Returns a boolean value indicating whether or not the collection has another element beyond the current index.
IIterator
  
next():Object
Returns the element at the current index and then moves on to the next.
IIterator
  
reset():void
Resets this iterator back to it's starting index.
IIterator
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 it's starting index.