Packagesystem.data
Interfacepublic interface ListIterator extends OrderedIterator, Iterator
Implementors LinkedListIterator

Defines an iterator that operates over an ordered list. This iterator allows both forward and reverse iteration through the list.



Public Methods
 MethodDefined By
  
add(o:*):void
Inserts the specified element into the list (optional operation).
ListIterator
 Inherited
hasNext():Boolean
Returns true if the iteration has more elements.
Iterator
 Inherited
hasPrevious():Boolean
Checks to see if there is a previous element that can be iterated to.
OrderedIterator
 Inherited
key():*
Returns the current key of the internal pointer of the iterator (optional operation).
Iterator
 Inherited
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
 Inherited
Returns the previous element in the collection.
OrderedIterator
  
Returns the index of the element that would be returned by a subsequent call to previous.
ListIterator
 Inherited
remove():*
Removes from the underlying collection the last element returned by the iterator (optional operation).
Iterator
 Inherited
reset():void
Reset the internal pointer of the iterator (optional operation).
Iterator
 Inherited
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
Method Detail
add()method
public function add(o:*):void

Inserts the specified element into the list (optional operation).

Parameters

o:*

nextIndex()method 
public function nextIndex():uint

Returns the index of the element that would be returned by a subsequent call to next.

Returns
uint — the index of the element that would be returned by a subsequent call to next.
previousIndex()method 
public function previousIndex():int

Returns the index of the element that would be returned by a subsequent call to previous.

Returns
int — the index of the element that would be returned by a subsequent call to previous.
set()method 
public function set(o:*):void

Replaces the last element returned by next or previous with the specified element (optional operation).

Parameters

o:*