Packagecom.yworks.support
Classpublic class SingleIterator
InheritanceSingleIterator Inheritance Object
Implements Iterator

An iterator that iterates a single item.



Public Methods
 MethodDefined 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
Constructor Detail
SingleIterator()Constructor
public function SingleIterator(item:Object)

Creates an instance that will iterate the single given item.

Parameters
item:Object
Method Detail
hasNext()method
public function hasNext():Boolean

Tests whether the method next() will return a valid element.

Returns
Booleantrue if next() will return a valid element.
next()method 
public function next():Object

Gets the next element of the set of elements.

Returns
Object — The next element in the set.
reset()method 
public function reset():void

Sets the Iterator's element cursor to the first element.