Packagecom.ericfeminella.utils.iterators
Interfacepublic interface IIterator

Defines a set of methods in which concrete Iterators classes can implement to adhere to the Iterator Pattern



Public Methods
 MethodDefined by
  
hasNext():Boolean
Determines if there are elements remaining in the aggregate object
IIterator
  
next():*
Returns the next property value in the aggregate object
IIterator
  
remove():void
Typically this method is not to be implemented therefore as a best practice any implementations should throw an Exception.
IIterator
  
setAggregate(aggregate:*):void
Sets the aggregate object instance in which an iterator implementation is to iterate over
IIterator
Method detail
hasNext()method
public function hasNext():Boolean

Determines if there are elements remaining in the aggregate object

Returns
Boolean — true if an element remains in the aggregate, false if not
next()method 
public function next():*

Returns the next property value in the aggregate object

Returns
* — value of current index
remove()method 
public function remove():void

Typically this method is not to be implemented therefore as a best practice any implementations should throw an Exception.

However, if need be this method may be implemented to remove an item specified ar the last index position of the Iterator implementation

setAggregate()method 
public function setAggregate(aggregate:*):void

Sets the aggregate object instance in which an iterator implementation is to iterate over

Parameters
aggregate:*