Package | com.ericfeminella.utils.iterators |
Class | public class ArrayCollectionIterator |
Inheritance | ArrayCollectionIterator com.ericfeminella.utils.iterators.Iterator |
Property | Defined by | ||
---|---|---|---|
cursor : int = 0 | ArrayCollectionIterator |
Method | Defined by | ||
---|---|---|---|
ArrayCollectionIterator(collection:ArrayCollection = null)
Constructor
Instantiates a new ArrayCollectionIterator
| ArrayCollectionIterator | ||
getCursor():int
Returns the current position of the cursor for the collection aggregate
| ArrayCollectionIterator | ||
hasNext():Boolean
Determines if there are elements remaining in the aggregate
| ArrayCollectionIterator | ||
next():*
Returns the next item in the aggregate
| ArrayCollectionIterator | ||
reset():void
Resets the cursor position of the ArrayCollectionIterator to 0
| ArrayCollectionIterator | ||
setAggregate(aggregate:*):void
Sets the aggregate object in which to traverse
| ArrayCollectionIterator |
cursor | property |
protected var cursor:int = 0
ArrayCollectionIterator | () | constructor |
public function ArrayCollectionIterator(collection:ArrayCollection = null)
Constructor Instantiates a new ArrayCollectionIterator
Parameterscollection:ArrayCollection (default = null ) — collection in which to iterate over
|
getCursor | () | method |
public function getCursor():int
Returns the current position of the cursor for the collection aggregate
Returnsint |
hasNext | () | method |
public override function hasNext():Boolean
Determines if there are elements remaining in the aggregate
ReturnsBoolean — true if an element remains in the aggregate, false if not
|
next | () | method |
public override function next():*
Returns the next item in the aggregate
Returns* |
reset | () | method |
public override function reset():void
Resets the cursor position of the ArrayCollectionIterator to 0
setAggregate | () | method |
public override function setAggregate(aggregate:*):void
Sets the aggregate object in which to traverse
Parametersaggregate:* — collection to to set as aggregate
|