Package | com.yworks.support |
Class | public class CollectionIterator |
Inheritance | CollectionIterator Object |
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():Object
Gets 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.