| Package | com.yworks.support |
| Class | public class CollectionIterator |
| Implements | Iterator |
Collection
See also
| Method | Defined by | ||
|---|---|---|---|
|
CollectionIterator(collection:Collection)
Initializes the
CollectionIterator's instance with an existing Collection
| CollectionIterator | ||
|
hasNext():Boolean
Tests whether the method
next() will return a valid element. | CollectionIterator | ||
|
next():Object
Gets the next element of the set of elements.
| CollectionIterator | ||
|
reset():void
Sets the
Iterator's element cursor to the first element. | CollectionIterator | ||
| CollectionIterator | () | constructor |
public function CollectionIterator(collection:Collection)
Initializes the CollectionIterator's instance with an existing Collection
collection:Collection — The collection for which the iterator will be created.
|
| hasNext | () | method |
public function hasNext():Boolean
Tests whether the method next() will return a valid element.
Boolean — true if next() will return a valid element.
|
| next | () | method |
public function next():ObjectGets the next element of the set of elements.
ReturnsObject — The next element in the set.
|
| reset | () | method |
public function reset():void
Sets the Iterator's element cursor to the first element.