| Package | system.data |
| Interface | public interface ListIterator extends OrderedIterator, Iterator |
| Implementors | LinkedListIterator |
| Method | Defined By | ||
|---|---|---|---|
add(o:*):void
Inserts the specified element into the list (optional operation). | ListIterator | ||
![]() | hasNext():Boolean
Returns true if the iteration has more elements. | Iterator | |
![]() | hasPrevious():Boolean
Checks to see if there is a previous element that can be iterated to. | OrderedIterator | |
![]() | key():*
Returns the current key of the internal pointer of the iterator (optional operation). | Iterator | |
![]() | next():*
Returns the next element in the iteration. | Iterator | |
nextIndex():uint
Returns the index of the element that would be returned by a subsequent call to next. | ListIterator | ||
![]() | previous():*
Returns the previous element in the collection. | OrderedIterator | |
previousIndex():int
Returns the index of the element that would be returned by a subsequent call to previous. | ListIterator | ||
![]() | remove():*
Removes from the underlying collection the last element returned by the iterator (optional operation). | Iterator | |
![]() | reset():void
Reset the internal pointer of the iterator (optional operation). | Iterator | |
![]() | seek(position:*):void
Changes the position of the internal pointer of the iterator (optional operation). | Iterator | |
set(o:*):void
Replaces the last element returned by next or previous with the specified element (optional operation). | ListIterator | ||
| add | () | method |
public function add(o:*):voidInserts the specified element into the list (optional operation).
Parameters
o:* |
| nextIndex | () | method |
public function nextIndex():uintReturns the index of the element that would be returned by a subsequent call to next.
Returnsuint — the index of the element that would be returned by a subsequent call to next.
|
| previousIndex | () | method |
public function previousIndex():intReturns the index of the element that would be returned by a subsequent call to previous.
Returnsint — the index of the element that would be returned by a subsequent call to previous.
|
| set | () | method |
public function set(o:*):voidReplaces the last element returned by next or previous with the specified element (optional operation).
Parameters
o:* |