Searched refs:iterator (Results 176 - 200 of 281) sorted by relevance

1234567891011>>

/libcore/ojluni/src/main/java/java/util/
H A DIdentityHashMap.java99 * <p>The iterators returned by the <tt>iterator</tt> method of the
102 * at any time after the iterator is created, in any way except
103 * through the iterator's own <tt>remove</tt> method, the iterator
105 * face of concurrent modification, the iterator fails quickly and
109 * <p>Note that the fail-fast behavior of an iterator cannot be guaranteed
760 // traversed by this iterator. We cannot allow future
975 public Iterator<K> iterator() { method in class:IdentityHashMap.KeySet
997 for (Iterator<K> i = iterator(); i.hasNext(); ) {
1081 public Iterator<V> iterator() { method in class:IdentityHashMap.Values
1185 public Iterator<Map.Entry<K,V>> iterator() { method in class:IdentityHashMap.EntrySet
[all...]
H A DLinkedHashMap.java73 * key-value mappings are provided by the specified map's entry set iterator.
121 * <p>The iterators returned by the <tt>iterator</tt> method of the collections
124 * the iterator is created, in any way except through the iterator's own
125 * <tt>remove</tt> method, the iterator will throw a {@link
127 * modification, the iterator fails quickly and cleanly, rather than risking
130 * <p>Note that the fail-fast behavior of an iterator cannot be guaranteed
199 * LinkedHashMap.Entry<K, V> entry = map.entrySet().iterator.next()
550 * the iterator's own <tt>remove</tt> operation), the results of
575 public final Iterator<K> iterator() { method in class:LinkedHashMap.LinkedKeySet
629 public final Iterator<V> iterator() { method in class:LinkedHashMap.LinkedValues
676 public final Iterator<Map.Entry<K,V>> iterator() { method in class:LinkedHashMap.LinkedEntrySet
[all...]
H A DTreeMap.java72 * <p>The iterators returned by the {@code iterator} method of the collections
75 * the iterator is created, in any way except through the iterator's own
76 * {@code remove} method, the iterator will throw a {@link
78 * modification, the iterator fails quickly and cleanly, rather than risking
81 * <p>Note that the fail-fast behavior of an iterator cannot be guaranteed
201 buildFromSorted(m.size(), m.entrySet().iterator(), null, null);
320 buildFromSorted(mapSize, map.entrySet().iterator(),
673 clone.buildFromSorted(size, entrySet().iterator(), null, null);
821 * <p>The set's iterator return
1057 public Iterator<V> iterator() { method in class:TreeMap.Values
1089 public Iterator<Map.Entry<K,V>> iterator() { method in class:TreeMap.EntrySet
1148 public Iterator<E> iterator() { method in class:TreeMap.KeySet
1951 public Iterator<Map.Entry<K,V>> iterator() { method in class:TreeMap.AscendingSubMap.AscendingEntrySetView
2044 public Iterator<Map.Entry<K,V>> iterator() { method in class:TreeMap.DescendingSubMap.DescendingEntrySetView
[all...]
H A DEnumSet.java40 * <p>The iterator returned by the <tt>iterator</tt> method traverses the
42 * constants are declared). The returned iterator is <i>weakly
174 Iterator<E> i = c.iterator();
H A DJumboEnumSet.java85 * Returns an iterator over the elements contained in this set. The
86 * iterator traverses the elements in their <i>natural order</i> (which is
88 * Iterator is a "weakly consistent" iterator that will never throw {@link
91 * @return an iterator over the elements contained in this set
93 public Iterator<E> iterator() { method in class:JumboEnumSet
100 * of the set not yet returned by this iterator.
110 * The bit representing the last element returned by this iterator
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/
H A DCharsetTest.java77 for (Iterator nameItr = names.iterator(); nameItr.hasNext();) {
86 for (Iterator nameItr = knownRegisteredCharsets.iterator(); nameItr.hasNext();) {
94 for (Iterator nameItr = unknownRegisteredCharsets.iterator(); nameItr.hasNext();) {
929 return v.iterator();
945 return v.iterator();
/libcore/jsr166-tests/src/test/java/jsr166/
H A DCopyOnWriteArrayListTest.java257 * iterator() returns an iterator containing the elements of the
262 assertFalse(empty.iterator().hasNext());
264 empty.iterator().next();
274 Iterator it = full.iterator();
283 * iterator of empty collection has no elements
287 assertIteratorExhausted(c.iterator());
291 * iterator.remove throws UnsupportedOperationException
295 Iterator it = full.iterator();
H A DDelayQueueTest.java621 * iterator iterates through all elements
626 Iterator it = q.iterator();
636 * iterator of empty collection has no elements
639 assertIteratorExhausted(new DelayQueue().iterator());
643 * iterator.remove removes current element
650 Iterator it = q.iterator();
653 it = q.iterator();
/libcore/luni/src/test/java/libcore/java/util/concurrent/
H A DCopyOnWriteArrayListTest.java39 Iterator<String> abcde = list.iterator();
121 Iterator<String> bcd = list.subList(1, 4).iterator();
297 list.iterator().forEachRemaining(s -> list.add(s));
/libcore/ojluni/src/main/java/java/util/concurrent/
H A DArrayBlockingQueue.java77 * <p>This class and its iterator implement all of the
125 * iterator state.
181 * Utility for remove(Object) and iterator.remove.
251 * added in traversal order of the collection's iterator.
709 * Returns an iterator over the elements in this queue in proper sequence.
712 * <p>The returned iterator is
715 * @return an iterator over the elements in this queue in proper sequence
717 public Iterator<E> iterator() { method in class:ArrayBlockingQueue
730 * this, when a queue has one or more iterators, it keeps iterator
739 * These suffice to eliminate iterator inconsistencie
780 Node(Itr iterator, Node next) argument
[all...]
H A DAbstractExecutorService.java170 Iterator<? extends Callable<T>> it = tasks.iterator();
/libcore/luni/src/test/java/libcore/java/security/cert/
H A DX509CertificateTest.java919 List<?> item = col.iterator().next();
946 List<?> item = col.iterator().next();
959 byte[] actual2 = (byte[]) c.getSubjectAlternativeNames().iterator().next().get(1);
977 List<?> item = col.iterator().next();
993 List<?> item = col.iterator().next();
1009 List<?> item = col.iterator().next();
1032 List<?> item = col.iterator().next();
1048 List<?> item = col.iterator().next();
/libcore/ojluni/src/main/java/java/util/stream/
H A DDoublePipeline.java172 public final PrimitiveIterator.OfDouble iterator() { method in class:DoublePipeline
173 return Spliterators.iterator(spliterator());
H A DLongPipeline.java173 public final PrimitiveIterator.OfLong iterator() { method in class:LongPipeline
174 return Spliterators.iterator(spliterator());
/libcore/ojluni/src/main/java/sun/nio/fs/
H A DUnixSecureDirectoryStream.java83 public Iterator<Path> iterator() { method in class:UnixSecureDirectoryStream
84 return ds.iterator(this);
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
H A DTestCertUtils.java209 return v.iterator();
678 for (Iterator i = certs.iterator(); i.hasNext();) {
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DLinkedListTest.java625 Iterator li = ll.iterator();
626 Iterator ri = retList.iterator();
643 li = ll.iterator();
644 ri = retList.iterator();
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/
H A DAttributesTest.java89 i = entrySet.iterator();
/libcore/luni/src/test/java/libcore/java/nio/file/
H A DLinuxFileSystemTest.java93 assertTrue(fileStores.iterator().hasNext());
/libcore/luni/src/test/java/libcore/java/util/
H A DOldTreeSetTest.java97 Iterator i = ts.iterator();
/libcore/ojluni/src/main/java/java/security/
H A DKeyFactory.java158 serviceIterator = list.iterator();
H A DKeyPairGenerator.java244 Iterator<Service> t = list.iterator();
/libcore/ojluni/src/main/java/java/sql/
H A DDriverManager.java493 Iterator driversIterator = loadedDrivers.iterator();
/libcore/ojluni/src/main/java/java/util/jar/
H A DManifest.java151 Iterator<Map.Entry<String, Attributes>> it = entries.entrySet().iterator();
/libcore/ojluni/src/main/java/javax/crypto/
H A DKeyAgreement.java181 Iterator<Service> t = services.iterator();

Completed in 1369 milliseconds

1234567891011>>