Packagecom.yworks.support
Classpublic final class EmptyIterator
InheritanceEmptyIterator Inheritance Object
Implements Iterator

A utility class that implements an always empty Iterator.

See also

Iterator


Public Methods
 MethodDefined By
  
hasNext():Boolean
Tests whether the method next() will return a valid element.
EmptyIterator
  
next():Object
Gets the next element of the set of elements.
EmptyIterator
  
reset():void
Sets the Iterator's element cursor to the first element.
EmptyIterator
Public Constants
 ConstantDefined By
  instance : Iterator
[static] A sharable static instance of this class.
EmptyIterator
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.

Constant Detail
instanceConstant
public static const instance:Iterator

A sharable static instance of this class.