Lines Matching refs:iterator

33  * extend this class and provide implementations for the <tt>iterator</tt> and
34 * <tt>size</tt> methods. (The iterator returned by the <tt>iterator</tt>
39 * <tt>UnsupportedOperationException</tt>), and the iterator returned by the
40 * <tt>iterator</tt> method must additionally implement its <tt>remove</tt>
72 * Returns an iterator over the elements contained in this collection.
74 * @return an iterator over the elements contained in this collection
76 public abstract Iterator<E> iterator();
99 Iterator<E> it = iterator();
116 * returned by this collection's iterator, in the same order, stored in
119 * returned by the iterator, even if the size of this collection changes
123 * even if the iterator returns a different number of elements.
137 Iterator<E> it = iterator();
150 * returned by this collection's iterator in the same order, stored in
152 * If the number of elements returned by the iterator is too large to
155 * returned by the iterator, even if the size of this collection
159 * even if the iterator returns a different number of elements.
180 Iterator<E> it = iterator();
211 * Reallocates the array being used within toArray when the iterator
213 * the iterator.
216 * @param it the in-progress iterator over this collection
218 * further elements returned by the iterator, trimmed to size
270 * from the collection using the iterator's remove method.
273 * <tt>UnsupportedOperationException</tt> if the iterator returned by this
274 * collection's iterator method does not implement the <tt>remove</tt>
282 Iterator<E> it = iterator();
308 * checking each element returned by the iterator in turn to see
327 * each object returned by the iterator to this collection, in turn.
353 * element returned by the iterator in turn to see if it's contained
355 * this collection with the iterator's <tt>remove</tt> method.
358 * <tt>UnsupportedOperationException</tt> if the iterator returned by the
359 * <tt>iterator</tt> method does not implement the <tt>remove</tt> method
373 Iterator<?> it = iterator();
387 * element returned by the iterator in turn to see if it's contained
389 * from this collection with the iterator's <tt>remove</tt> method.
392 * <tt>UnsupportedOperationException</tt> if the iterator returned by the
393 * <tt>iterator</tt> method does not implement the <tt>remove</tt> method
407 Iterator<E> it = iterator();
426 * <tt>UnsupportedOperationException</tt> if the iterator returned by this
427 * collection's <tt>iterator</tt> method does not implement the
433 Iterator<E> it = iterator();
446 * order they are returned by its iterator, enclosed in square brackets
454 Iterator<E> it = iterator();