Packageorg.as3collections.iterators
Classpublic class ReadOnlyArrayIterator
InheritanceReadOnlyArrayIterator Inheritance ArrayIterator Inheritance Object

An iterator to iterate over an Array object. This implementation doesn't allow modifications in the collection. All methods that change the collection will throw an UnsupportedOperationError.



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

Constructor, creates a new ReadOnlyArrayIterator object.

Parameters
source:Array — the source array 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 ReadOnlyArrayIterator is a read-only iterator and doesn't allow modifications in the collection.