Package | com.ericfeminella.utils.iterators |
Interface | public interface IIterator |
Implementors | ArrayIterator, CollectionIterator, ObjectIterator |
Method | Defined by | ||
---|---|---|---|
hasNext():Boolean
Determines if there are elements remaining in the aggregate
| IIterator | ||
next():*
Retrieves the next element in the aggregate
| IIterator | ||
position():int
Determines the position of the current element in the aggreagate
| IIterator | ||
reset():void
Resets the cursor / index of the Iterator to 0
| IIterator | ||
setAggregate(aggregate:Object = null):void
Sets the aggregate object in which to iterator over
| IIterator |
hasNext | () | method |
public function hasNext():Boolean
Determines if there are elements remaining in the aggregate
ReturnsBoolean — true if an element remains, false if not
|
next | () | method |
public function next():*
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
Returnsint — the current index of the aggreagate
|
reset | () | method |
public function reset():void
Resets the cursor / index of the Iterator to 0
setAggregate | () | method |
public function setAggregate(aggregate:Object = null):void
Sets the aggregate object in which to iterator over
Parametersaggregate:Object (default = null ) — aggregate instance
|