Package | org.as3collections.iterators |
Class | public class ReadOnlyListIterator |
Inheritance | ReadOnlyListIterator ListIterator Object |
UnsupportedOperationError
.
Method | Defined By | ||
---|---|---|---|
ReadOnlyListIterator(source:IList, position:int = 0)
Constructor, creates a new ReadOnlyListIterator object. | ReadOnlyListIterator | ||
add(element:*):Boolean [override]
This implementation always throws an UnsupportedOperationError. | ReadOnlyListIterator | ||
hasNext():Boolean
Returns true if the iteration has more elements. | ListIterator | ||
hasPrevious():Boolean
Returns true if the iteration has more elements when traversing the list in the reverse direction. | ListIterator | ||
next():*
Returns the next element in the iteration. | ListIterator | ||
nextIndex():int
Returns the index of the element that would be returned by a subsequent call to next. | ListIterator | ||
pointer():*
Returns the internal pointer of the iteration. | ListIterator | ||
previous():*
Returns the previous element in the iteration. | ListIterator | ||
previousIndex():int
Returns the index of the element that would be returned by a subsequent call to previous. | ListIterator | ||
remove():void [override]
This implementation always throws an UnsupportedOperationError. | ReadOnlyListIterator | ||
reset():void
Resets the internal pointer of the iterator. | ListIterator | ||
set(element:*):void [override]
This implementation always throws an UnsupportedOperationError. | ReadOnlyListIterator |
ReadOnlyListIterator | () | Constructor |
public function ReadOnlyListIterator(source:IList, position:int = 0)
Constructor, creates a new ReadOnlyListIterator
object.
source:IList — the source ReadOnlyListIterator to iterate over.
| |
position:int (default = 0 ) — indicates the first element that would be returned by an initial call to next . An initial call to previous would return the element with the specified position minus one.
|
ArgumentError — if the source argument is null .
|
add | () | method |
override public function add(element:*):Boolean
This implementation always throws an UnsupportedOperationError
.
Parameters
element:* — the element to add.
|
Boolean |
org.as3coreaddendum.errors:UnsupportedOperationError — ReadOnlyListIterator is a read-only iterator and doesn't allow modifications in the list.
|
remove | () | method |
override public function remove():void
This implementation always throws an UnsupportedOperationError
.
org.as3coreaddendum.errors:UnsupportedOperationError — ReadOnlyListIterator is a read-only iterator and doesn't allow modifications in the list.
|
set | () | method |
override public function set(element:*):void
This implementation always throws an UnsupportedOperationError
.
Parameters
element:* — the element with which to replace the last element returned by next or previous .
|
org.as3coreaddendum.errors:UnsupportedOperationError — ReadOnlyListIterator is a read-only iterator and doesn't allow modifications in the list.
|