| Package | org.as3collections.iterators |
| Class | public class ReadOnlyMapIterator |
| Inheritance | ReadOnlyMapIterator MapIterator Object |
IMap interface).
This implementation doesn't allow modifications in the map.
All methods that change the map will throw an UnsupportedOperationError.
| Method | Defined By | ||
|---|---|---|---|
ReadOnlyMapIterator(source:IMap)
Constructor, creates a new ReadOnlyMapIterator object. | ReadOnlyMapIterator | ||
![]() | hasNext():Boolean
Returns true if the iteration has more elements. | MapIterator | |
![]() | next():*
Returns the next element in the iteration. | MapIterator | |
![]() | pointer():*
Returns the internal pointer of the iteration. | MapIterator | |
remove():void [override]
This implementation always throws an UnsupportedOperationError. | ReadOnlyMapIterator | ||
![]() | reset():void
Resets the internal pointer of the iterator. | MapIterator | |
| ReadOnlyMapIterator | () | Constructor |
public function ReadOnlyMapIterator(source:IMap)
Constructor, creates a new ReadOnlyMapIterator object.
source:IMap — the source map to iterate over.
|
ArgumentError — if the source argument is null.
|
| remove | () | method |
override public function remove():void
This implementation always throws an UnsupportedOperationError.
org.as3coreaddendum.errors:UnsupportedOperationError — ReadOnlyMapIterator is a read-only iterator and doesn't allow modifications in the map.
|