Packagecom.yworks.bridge.util
Interfacepublic interface Iterator

An Iterator is used to sequence over a collection of objects.



Public Methods
 MethodDefined By
  
hasNext():Boolean
Answers if there are more elements to iterate.
Iterator
  
nextItem():Object
Answers the next object in the iteration.
Iterator
  
removeItem():void
Removes the last object returned by next from the collection.
Iterator
Method Detail
hasNext()method
public function hasNext():Boolean

Answers if there are more elements to iterate.

Returns
Boolean — true if there are more elements, false otherwise

See also

nextItem()method 
public function nextItem():Object

Answers the next object in the iteration.

Returns
Object — the next object

Throws
Error — when there are no more elements

See also

removeItem()method 
public function removeItem():void

Removes the last object returned by next from the collection.


Throws
flash.errors:IllegalOperationError — when removing is not supported by the collection being iterated
 
Error — when next has not been called, or remove has already been called after the last call to next