Packagecom.yworks.support
Interfacepublic interface Iterator
Implementors CollectionIterator, CompositeIterator, EmptyIterator, SingleIterator

Interface for implementations that can iterate over a set of elements.



Public Methods
 MethodDefined By
  
hasNext():Boolean
Tests whether the method next() will return a valid element.
Iterator
  
next():Object
Gets the next element of the set of elements.
Iterator
  
reset():void
Sets the Iterator's element cursor to the first element.
Iterator
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.