| Package | sekati.collections |
| Class | public class ArrayIterator |
| Implements | IDestructiveIterator, IIterator |
| Property | Defined by | ||
|---|---|---|---|
| _array : Array | ArrayIterator | ||
| Method | Defined by | ||
|---|---|---|---|
|
ArrayIterator(array:Array)
ArrayIterator Constructor
| ArrayIterator | ||
|
hasNext():Boolean
Check if iterator has a next element.
| ArrayIterator | ||
|
next():Object
Remove and return the next item in the collection.
| ArrayIterator | ||
|
peek():Object
Return the next item, but don't remove it yet.
| ArrayIterator | ||
| _array | property |
protected var _array:Array
| ArrayIterator | () | constructor |
public function ArrayIterator(array:Array)ArrayIterator Constructor
Parametersarray:Array — Array of data used in iteration.
|
| hasNext | () | method |
public function hasNext():BooleanCheck if iterator has a next element.
ReturnsBoolean — Boolean
|
| next | () | method |
public function next():ObjectRemove and return the next item in the collection.
ReturnsObject |
| peek | () | method |
public function peek():ObjectReturn the next item, but don't remove it yet.
ReturnsObject |