Packagesystem.data
Interfacepublic interface Iterator
Implementors ArrayIterator, BagIterator, MapIterator, ObjectIterator, ProtectedIterator, StringIterator, VectorIterator

This interface defines the iterator pattern over a collection.



Public Methods
 MethodDefined By
  
hasNext():Boolean
Returns true if the iteration has more elements.
Iterator
  
key():*
Returns the current key of the internal pointer of the iterator (optional operation).
Iterator
  
next():*
Returns the next element in the iteration.
Iterator
  
remove():*
Removes from the underlying collection the last element returned by the iterator (optional operation).
Iterator
  
reset():void
Reset the internal pointer of the iterator (optional operation).
Iterator
  
seek(position:*):void
Changes the position of the internal pointer of the iterator (optional operation).
Iterator
Method Detail
hasNext()method
public function hasNext():Boolean

Returns true if the iteration has more elements.

Returns
Booleantrue if the iteration has more elements.
key()method 
public function key():*

Returns the current key of the internal pointer of the iterator (optional operation).

Returns
* — the current key of the internal pointer of the iterator (optional operation).
next()method 
public function next():*

Returns the next element in the iteration.

Returns
* — the next element in the iteration.
remove()method 
public function remove():*

Removes from the underlying collection the last element returned by the iterator (optional operation).

Returns
*
reset()method 
public function reset():void

Reset the internal pointer of the iterator (optional operation).

seek()method 
public function seek(position:*):void

Changes the position of the internal pointer of the iterator (optional operation).

Parameters

position:*