A ListIterator for lists that allows the programmer to traverse the list in
either direction, modify the list during iteration, and obtain the iterator's current position in the list. A ListIterator has no current element; its cursor position always lies between the element that would be returned by a call to previous() and the element that would be returned by a call to next(). In a list of length n, there are n+1 valid index values, from 0 to n, inclusive.
Element(0) Element(1) Element(2) ... Element(n) ^ ^ ^ ^ ^ Index: 0 1 2 3 n+1
Note that the remove() and set() methods are not defined in terms of the cursor position; they are defined to operate on the last element returned by a call to next() or previous().
Located in /phrame/util/ListIterator.php (line 22)
Create a ListIterator with the specified values.
Insert the specified element into the list.
Check if the ListIterator has more elements when traversing the list in the forward direction.
Check if the ListIterator has more elements when traversing the list in the reverse direction.
Get the next element in the list.
Get the index of the element that would be returned by a subsequent call to next().
Get the previous element in the list.
Get the index of the element that would be returned by a subsequent call to prev().
Remove from the list the last element that was returned by next() or previous().
Replace the last element returned by next() or previous() with the specified element.
Documentation generated on Wed, 05 Oct 2011 10:36:41 +0200 by phpDocumentor 1.4.1