Packagecom.ericfeminella.utils.iterators
Classpublic class ObjectIterator
ImplementsIIterator

Concrete Iterator implementation which provides methods for iterating over a generic object



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

Instantiates a new ObjectIterator instance

Parameters
object:Object (default = null) — aggregate object in which to iterate over
Method detail
hasNext()method
public function hasNext():Boolean

Determines if there are properties remaining in the Object

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

Returns the next index value in the Object

Retrieves the next element in the aggregate

Returns
* — next element based on the current index
position()method 
public function position():int

Determines the position of the current element in the aggreagate

Determines the position of the current element in the aggreagate

Returns
int — the current index of the aggreagate
reset()method 
public function reset():void

Resets the index of the ObjectIterator to 0

setAggregate()method 
public function setAggregate(aggregate:Object = null):void

Sets the aggregate object in which to iterate over

Parameters
aggregate:Object (default = null) — object instance to traverse