Packagesystem.data.iterators
Classpublic class MapIterator
InheritanceMapIterator Inheritance Object
Implements Iterator

Converts a Map to an iterator.



Public Methods
 MethodDefined By
  
Creates a new MapIterator instance.
MapIterator
  
hasNext():Boolean
Returns true if the iteration has more elements.
MapIterator
  
key():*
Returns the current key of the internal pointer of the iterator (optional operation).
MapIterator
  
next():*
Returns the next element in the iteration.
MapIterator
  
remove():*
Removes from the underlying collection the last element returned by the iterator (optional operation).
MapIterator
  
reset():void
Reset the internal pointer of the iterator (optional operation).
MapIterator
  
seek(position:*):void
Change the position of the internal pointer of the iterator (optional operation).
MapIterator
Constructor Detail
MapIterator()Constructor
public function MapIterator(m:Map)

Creates a new MapIterator instance.

Parameters
m:Map — the Map reference of this 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

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

Parameters

position:*