838 |
|
* when the iterator was constructed. No synchronization is |
839 |
|
* needed while traversing the iterator. The iterator does |
840 |
|
* <em>NOT</em> support the <tt>remove</tt> method. |
841 |
+ |
* @return the iterator |
842 |
|
*/ |
843 |
|
public Iterator<E> iterator() { |
844 |
|
return new COWIterator<E>(array(), 0); |
851 |
|
* needed while traversing the iterator. The iterator does |
852 |
|
* <em>NOT</em> support the <tt>remove</tt>, <tt>set</tt>, |
853 |
|
* or <tt>add</tt> methods. |
854 |
+ |
* @return the iterator |
855 |
|
* |
856 |
|
*/ |
857 |
|
public ListIterator<E> listIterator() { |
870 |
|
* |
871 |
|
* @param index index of first element to be returned from the |
872 |
|
* ListIterator (by a call to getNext). |
873 |
+ |
* @return the iterator |
874 |
|
* @throws IndexOutOfBoundsException index is out of range |
875 |
|
* (index < 0 || index > size()). |
876 |
|
*/ |