Packageorg.as3collections.iterators
Classpublic class ReadOnlyMapIterator
InheritanceReadOnlyMapIterator Inheritance MapIterator Inheritance Object

An iterator to iterate over maps (implementations of the IMap interface). This implementation doesn't allow modifications in the map. All methods that change the map will throw an UnsupportedOperationError.



Public Methods
 MethodDefined By
  
Constructor, creates a new ReadOnlyMapIterator object.
ReadOnlyMapIterator
 Inherited
hasNext():Boolean
Returns true if the iteration has more elements.
MapIterator
 Inherited
next():*
Returns the next element in the iteration.
MapIterator
 Inherited
Returns the internal pointer of the iteration.
MapIterator
  
remove():void
[override] This implementation always throws an UnsupportedOperationError.
ReadOnlyMapIterator
 Inherited
reset():void
Resets the internal pointer of the iterator.
MapIterator
Constructor Detail
ReadOnlyMapIterator()Constructor
public function ReadOnlyMapIterator(source:IMap)

Constructor, creates a new ReadOnlyMapIterator object.

Parameters
source:IMap — the source map to iterate over.

Throws
ArgumentError — if the source argument is null.
Method Detail
remove()method
override public function remove():void

This implementation always throws an UnsupportedOperationError.


Throws
org.as3coreaddendum.errors:UnsupportedOperationError ReadOnlyMapIterator is a read-only iterator and doesn't allow modifications in the map.