| Package | com.yworks.support |
| Class | public class CompositeIterator |
| Inheritance | CompositeIterator Object |
| Implements | Iterator |
Iterator that iterates two given Iterators one after the other.
| Method | Defined By | ||
|---|---|---|---|
Creates an instance that iterates over the two given Iterator
| CompositeIterator | ||
hasNext():Boolean
Tests whether the method next() will return a valid element. | CompositeIterator | ||
next():Object
Gets the next element of the set of elements. | CompositeIterator | ||
reset():void
Sets the Iterator's element cursor to the first element. | CompositeIterator | ||
| CompositeIterator | () | Constructor |
public function CompositeIterator(first:Iterator, second:Iterator)
Creates an instance that iterates over the two given Iterator
first:Iterator | |
second:Iterator |
| 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.