Searched refs:iterator (Results 251 - 275 of 281) sorted by relevance

<<1112

/libcore/ojluni/src/main/java/java/util/
H A DArrayList.java42 * <tt>iterator</tt>, and <tt>listIterator</tt> operations run in constant
75 * The iterators returned by this class's {@link #iterator() iterator} and
77 * if the list is structurally modified at any time after the iterator is
78 * created, in any way except through the iterator's own
80 * {@link ListIterator#add(Object) add} methods, the iterator will throw a
82 * concurrent modification, the iterator fails quickly and cleanly, rather
86 * <p>Note that the fail-fast behavior of an iterator cannot be guaranteed
185 * iterator.
602 * specified collection's iterator
833 public Iterator<E> iterator() { method in class:ArrayList
1110 public Iterator<E> iterator() { method in class:ArrayList.SubList
[all...]
H A DArrayDeque.java59 * {@link #iterator iterator.remove()},
62 * <p>The iterators returned by this class's {@link #iterator() iterator}
64 * the iterator is created, in any way except through the iterator's own
65 * {@code remove} method, the iterator will generally throw a {@link
67 * modification, the iterator fails quickly and cleanly, rather than risking
71 * <p>Note that the fail-fast behavior of an iterator cannot be guaranteed
79 * <p>This class and its iterator implemen
587 public Iterator<E> iterator() { method in class:ArrayDeque
[all...]
H A DVector.java49 * The iterators returned by this class's {@link #iterator() iterator} and
51 * if the vector is structurally modified at any time after the iterator is
52 * created, in any way except through the iterator's own
54 * {@link ListIterator#add(Object) add} methods, the iterator will throw a
56 * concurrent modification, the iterator fails quickly and cleanly, rather
61 * <p>Note that the fail-fast behavior of an iterator cannot be guaranteed
163 * iterator.
942 * iterator.
1081 * Returns a list iterator ove
1117 public synchronized Iterator<E> iterator() { method in class:Vector
[all...]
H A DHashMap.java104 * the iterator is created, in any way except through the iterator's own
105 * <tt>remove</tt> method, the iterator will throw a
107 * modification, the iterator fails quickly and cleanly, rather than risking
111 * <p>Note that the fail-fast behavior of an iterator cannot be guaranteed
215 * iterator.remove. When using comparators on insertion, to keep a
894 * the iterator's own <tt>remove</tt> operation), the results of
916 public final Iterator<K> iterator() { return new KeyIterator(); } method in class:HashMap.KeySet
946 * (except through the iterator's own <tt>remove</tt> operation),
968 public final Iterator<V> iterator() { retur method in class:HashMap.Values
1014 public final Iterator<Map.Entry<K,V>> iterator() { method in class:HashMap.EntrySet
[all...]
/libcore/ojluni/src/main/java/java/util/logging/
H A DLogger.java2058 for (Iterator<LogManager.LoggerWeakRef> iter = parent.kids.iterator(); iter.hasNext(); ) {
2096 for (Iterator<LogManager.LoggerWeakRef> iter = kids.iterator(); iter.hasNext(); ) {
H A DLogManager.java1624 Iterator<LogNode> values = children.values().iterator();
/libcore/ojluni/src/main/java/java/util/stream/
H A DCollectors.java1555 public Iterator<Map.Entry<Boolean, T>> iterator() {
1558 return Arrays.asList(falseEntry, trueEntry).iterator();
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
H A DTabulatorsTest.java173 for (Iterator<T> it = stream.iterator(); it.hasNext(); ) // avoid capturing result::add
199 for (Iterator<T> it = stream.iterator(); it.hasNext(); ) // avoid capturing result::add
/libcore/luni/src/test/java/libcore/java/util/
H A DLinkedHashMapTest.java319 Iterator<? extends Map.Entry<?, ?>> it = map.entrySet().iterator();
423 // Should be the same as: return (map.isEmpty()) ? null : map.entrySet().iterator().next();
/libcore/ojluni/src/main/java/java/security/
H A DSignature.java361 Iterator<Service> t = list.iterator();
/libcore/ojluni/src/main/java/java/time/format/
H A DParsed.java635 for (Iterator<Entry<TemporalField, Long>> it = fieldValues.entrySet().iterator(); it.hasNext(); ) {
/libcore/ojluni/src/main/java/java/util/concurrent/
H A DConcurrentLinkedQueue.java75 * creation of the iterator. They do <em>not</em> throw {@link
78 * of the iterator will be returned exactly once.
88 * to be performed atomically. For example, an iterator operating
92 * <p>This class and its iterator implement all of the <em>optional</em>
246 * added in traversal order of the collection's iterator.
502 * collection's iterator. Attempts to {@code addAll} of a queue to
676 * Returns an iterator over the elements in this queue in proper sequence.
679 * <p>The returned iterator is
682 * @return an iterator over the elements in this queue in proper sequence
684 public Iterator<E> iterator() { method in class:ConcurrentLinkedQueue
[all...]
H A DLinkedBlockingQueue.java72 * <p>This class and its iterator implement all of the
270 * added in traversal order of the collection's iterator.
744 * Returns an iterator over the elements in this queue in proper sequence.
747 * <p>The returned iterator is
750 * @return an iterator over the elements in this queue in proper sequence
752 public Iterator<E> iterator() { method in class:LinkedBlockingQueue
758 * Basic weakly-consistent iterator. At all times hold the next
H A DPriorityBlockingQueue.java67 * <p>This class and its iterator implement all of the
70 * #iterator()} is <em>not</em> guaranteed to traverse the elements of
846 * Returns an iterator over the elements in this queue. The
847 * iterator does not return the elements in any particular order.
849 * <p>The returned iterator is
852 * @return an iterator over the elements in this queue
854 public Iterator<E> iterator() { method in class:PriorityBlockingQueue
859 * Snapshot iterator that works off copy of underlying q array.
H A DScheduledThreadPoolExecutor.java379 // Traverse snapshot to avoid iterator exceptions
1287 public Iterator<Runnable> iterator() { method in class:ScheduledThreadPoolExecutor.DelayedWorkQueue
1292 * Snapshot iterator that works off copy of underlying q array.
H A DSynchronousQueue.java80 * <p>This class and its iterator implement all of the
1058 * Returns an empty iterator in which {@code hasNext} always returns
1061 * @return an empty iterator
1063 public Iterator<E> iterator() { method in class:SynchronousQueue
H A DThreadPoolExecutor.java1797 Iterator<Runnable> it = q.iterator();
H A DConcurrentSkipListMap.java100 * iterator operating concurrently with a {@code putAll} operation
1373 map.entrySet().iterator();
1456 * as the kind of iterator needed by buildFromSorted. (They
1804 * <p>The set's iterator returns the keys in ascending order.
1841 * <p>The collection's iterator returns the values in ascending order
1866 * <p>The set's iterator returns the entries in ascending key order. The
1883 * <p>The {@code Map.Entry} elements traversed by the {@code iterator}
2265 * Base of iterator classes:
2275 /** Initializes ascending iterator for entire range. */
2383 public Iterator<K> iterator() { method in class:ConcurrentSkipListMap.KeySet
2445 public Iterator<V> iterator() { method in class:ConcurrentSkipListMap.Values
2486 public Iterator<Map.Entry<K,V>> iterator() { method in class:ConcurrentSkipListMap.EntrySet
[all...]
H A DConcurrentHashMap.java99 * iterator/enumeration. They do <em>not</em> throw {@link
3334 * reachable upon iterator construction. It might miss some that
3440 * Traverser to support iterator.remove.
4457 * Returns an iterator over the elements in this collection.
4459 * <p>The returned iterator is
4462 * @return an iterator over the elements in this collection
4464 public abstract Iterator<E> iterator(); method in class:ConcurrentHashMap.CollectionView
4526 * its iterator, enclosed in square brackets ({@code "[]"}).
4536 Iterator<E> it = iterator();
4562 for (Iterator<E> it = iterator(); i
4633 public Iterator<K> iterator() { method in class:ConcurrentHashMap.KeySetView
4738 public final Iterator<V> iterator() { method in class:ConcurrentHashMap.ValuesView
4805 public Iterator<Map.Entry<K,V>> iterator() { method in class:ConcurrentHashMap.EntrySetView
[all...]
H A DConcurrentLinkedDeque.java74 * to be performed atomically. For example, an iterator operating
78 * <p>This class and its iterator implement all of the <em>optional</em>
165 * may remain reachable indefinitely from an iterator.
183 * iterator, but unlike unlinked nodes, are never reachable from
202 * indefinitely (for example by an iterator). We must ensure that
811 * collection's iterator.
1145 * collection's iterator. Attempts to {@code addAll} of a deque to
1330 * Returns an iterator over the elements in this deque in proper sequence.
1333 * <p>The returned iterator is
1336 * @return an iterator ove
1338 public Iterator<E> iterator() { method in class:ConcurrentLinkedDeque
[all...]
H A DLinkedBlockingDeque.java66 * contains}, {@link #iterator iterator.remove()}, and the bulk
69 * <p>This class and its iterator implement all of the
189 * collection's iterator.
312 // an iterator.
989 * Returns an iterator over the elements in this deque in proper sequence.
992 * <p>The returned iterator is
995 * @return an iterator over the elements in this deque in proper sequence
997 public Iterator<E> iterator() { method in class:LinkedBlockingDeque
1002 * Returns an iterator ove
[all...]
H A DLinkedTransferQueue.java69 * to be performed atomically. For example, an iterator operating
73 * <p>This class and its iterator implement all of the
1231 * added in traversal order of the collection's iterator.
1401 * Returns an iterator over the elements in this queue in proper sequence.
1404 * <p>The returned iterator is
1407 * @return an iterator over the elements in this queue in proper sequence
1409 public Iterator<E> iterator() { method in class:LinkedTransferQueue
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
H A DPolicyChecker.java601 PolicyNodeImpl anyNode = anyNodes.iterator().next();
/libcore/ojluni/src/main/java/sun/security/util/
H A DSignatureFileVerifier.java307 sf.getEntries().entrySet().iterator();
/libcore/luni/src/test/java/libcore/java/security/
H A DProviderTest.java174 for (Iterator<String> cipherIt = remainingExpected.get("Cipher").iterator();

Completed in 1762 milliseconds

<<1112