| Package | com.yworks.support |
| Class | public class SingleIterator |
| Inheritance | SingleIterator Object |
| Implements | Iterator |
| Method | Defined By | ||
|---|---|---|---|
SingleIterator(item:Object)
Creates an instance that will iterate the single given item. | SingleIterator | ||
hasNext():Boolean
Tests whether the method next() will return a valid element. | SingleIterator | ||
next():Object
Gets the next element of the set of elements. | SingleIterator | ||
reset():void
Sets the Iterator's element cursor to the first element. | SingleIterator | ||
| SingleIterator | () | Constructor |
public function SingleIterator(item:Object)Creates an instance that will iterate the single given item.
Parametersitem:Object |
| 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.