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.
179 Iterator<E> it = iterator();
210 * Reallocates the array being used within toArray when the iterator
212 * the iterator.
215 * @param it the in-progress iterator over this collection
217 * further elements returned by the iterator, trimmed to size
268 * from the collection using the iterator's remove method.
271 * <tt>UnsupportedOperationException</tt> if the iterator returned by this
272 * collection's iterator method does not implement the <tt>remove</tt>
280 Iterator<E> it = iterator();
306 * checking each element returned by the iterator in turn to see
325 * each object returned by the iterator to this collection, in turn.
351 * element returned by the iterator in turn to see if it's contained
353 * this collection with the iterator's <tt>remove</tt> method.
356 * <tt>UnsupportedOperationException</tt> if the iterator returned by the
357 * <tt>iterator</tt> method does not implement the <tt>remove</tt> method
370 Iterator<?> it = iterator();
384 * element returned by the iterator in turn to see if it's contained
386 * from this collection with the iterator's <tt>remove</tt> method.
389 * <tt>UnsupportedOperationException</tt> if the iterator returned by the
390 * <tt>iterator</tt> method does not implement the <tt>remove</tt> method
403 Iterator<E> it = iterator();
422 * <tt>UnsupportedOperationException</tt> if the iterator returned by this
423 * collection's <tt>iterator</tt> method does not implement the
429 Iterator<E> it = iterator();
442 * order they are returned by its iterator, enclosed in square brackets
450 Iterator<E> it = iterator();