Packagecom.ericfeminella.utils.iterators
Classpublic class ObjectIterator
InheritanceObjectIterator Inheritance com.ericfeminella.utils.iterators.Iterator

Concrete Iterator implementation which provides methods for iterating over an object



Public Methods
 MethodDefined by
  
ObjectIterator(object:Object = null)
Instantiates a new ObjectIterator
ObjectIterator
  
hasNext():Boolean
Determines if there are properties remaining in the Object
ObjectIterator
  
next():*
Returns the next propertyCursor value in the Object
ObjectIterator
  
reset():void
Resets the position of the ObjectIterator to 0
ObjectIterator
  
setAggregate(aggregate:*):void
Sets the aggregate object in which to traverse over
ObjectIterator
Constructor detail
ObjectIterator()constructor
public function ObjectIterator(object:Object = null)

Instantiates a new ObjectIterator

Parameters
object:Object (default = null) — aggregate object for the ObjectIterator
Method detail
hasNext()method
public override function hasNext():Boolean

Determines if there are properties remaining in the Object

Returns
Boolean — true if a propertyCursor remains in the Object, false if not
next()method 
public override function next():*

Returns the next propertyCursor value in the Object

Returns
* — value of current propertyCursor
reset()method 
public override function reset():void

Resets the position of the ObjectIterator to 0

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

Sets the aggregate object in which to traverse over

Parameters
aggregate:*