| Package | com.ericfeminella.utils.iterators |
| Class | public class ObjectIterator |
| Implements | IIterator |
| Method | Defined 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 | ||
| ObjectIterator | () | constructor |
public function ObjectIterator(object:Object = null)Instantiates a new ObjectIterator instance
Parametersobject:Object (default = null) — aggregate object in which to iterate over
|
| hasNext | () | method |
public function hasNext():BooleanDetermines if there are properties remaining in the Object
ReturnsBoolean — 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():intDetermines the position of the current element in the aggreagate
Determines the position of the current element in the aggreagate
Returnsint — the current index of the aggreagate
|
| reset | () | method |
public function reset():voidResets the index of the ObjectIterator to 0
| setAggregate | () | method |
public function setAggregate(aggregate:Object = null):voidSets the aggregate object in which to iterate over
Parametersaggregate:Object (default = null) — object instance to traverse
|