Package | org.as3collections.iterators |
Class | public class ReadOnlyArrayIterator |
Inheritance | ReadOnlyArrayIterator ArrayIterator Object |
Array
object.
This implementation doesn't allow modifications in the collection.
All methods that change the collection will throw an UnsupportedOperationError
.
Method | Defined By | ||
---|---|---|---|
ReadOnlyArrayIterator(source:Array)
Constructor, creates a new ReadOnlyArrayIterator object. | ReadOnlyArrayIterator | ||
hasNext():Boolean
Returns true if the iteration has more elements. | ArrayIterator | ||
next():*
Returns the next element in the iteration. | ArrayIterator | ||
pointer():*
Returns the internal pointer of the iteration. | ArrayIterator | ||
remove():void [override]
This implementation always throws an UnsupportedOperationError. | ReadOnlyArrayIterator | ||
reset():void
Resets the internal pointer of the iterator. | ArrayIterator |
ReadOnlyArrayIterator | () | Constructor |
public function ReadOnlyArrayIterator(source:Array)
Constructor, creates a new ReadOnlyArrayIterator object.
Parameterssource:Array — the source array 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 — ReadOnlyArrayIterator is a read-only iterator and doesn't allow modifications in the collection.
|