/libcore/ojluni/src/main/java/java/util/ |
D | AbstractCollection.java | 101 while (it.hasNext()) in contains() 105 while (it.hasNext()) in contains() 139 if (! it.hasNext()) // fewer elements than expected in toArray() 143 return it.hasNext() ? finishToArray(r, it) : r; in toArray() 183 if (! it.hasNext()) { // fewer elements than expected in toArray() 199 return it.hasNext() ? finishToArray(r, it) : r; in toArray() 223 while (it.hasNext()) { in finishToArray() 284 while (it.hasNext()) { in remove() 291 while (it.hasNext()) { in remove() 374 while (it.hasNext()) { in removeAll() [all …]
|
D | AbstractMap.java | 114 while (i.hasNext()) { in containsValue() 120 while (i.hasNext()) { in containsValue() 146 while (i.hasNext()) { in containsKey() 152 while (i.hasNext()) { in containsKey() 178 while (i.hasNext()) { in get() 184 while (i.hasNext()) { in get() 238 while (correctEntry==null && i.hasNext()) { in remove() 244 while (correctEntry==null && i.hasNext()) { in remove() 354 public boolean hasNext() { in keySet() 355 return i.hasNext(); in keySet() [all …]
|
D | AbstractSet.java | 123 while (i.hasNext()) { in hashCode() 173 for (Iterator<?> i = c.iterator(); i.hasNext(); ) in removeAll() 176 for (Iterator<?> i = iterator(); i.hasNext(); ) { in removeAll()
|
D | Iterator.java | 62 boolean hasNext(); in hasNext() method 115 while (hasNext()) in forEachRemaining()
|
D | PrimitiveIterator.java | 114 while (hasNext()) in forEachRemaining() 188 while (hasNext()) in forEachRemaining() 261 while (hasNext()) in forEachRemaining()
|
D | Spliterators.java | 679 public boolean hasNext() { in iterator() method in Spliterators.Adapter 687 if (!valueReady && !hasNext()) in iterator() 724 public boolean hasNext() { in iterator() method in Spliterators.Adapter 732 if (!valueReady && !hasNext()) in iterator() 769 public boolean hasNext() { in iterator() method in Spliterators.Adapter 777 if (!valueReady && !hasNext()) in iterator() 814 public boolean hasNext() { in iterator() method in Spliterators.Adapter 822 if (!valueReady && !hasNext()) in iterator() 1776 if (s > 1 && i.hasNext()) { in trySplit() 1784 do { a[j] = i.next(); } while (++j < n && i.hasNext()); in trySplit() [all …]
|
D | ServiceLoader.java | 354 while ((pending == null) || !pending.hasNext()) { in hasNextService() 399 public boolean hasNext() { in hasNext() method in ServiceLoader.LazyIterator 485 public boolean hasNext() { in iterator() method 486 if (knownProviders.hasNext()) in iterator() 488 return lookupIterator.hasNext(); in iterator() 492 if (knownProviders.hasNext()) in iterator()
|
D | AbstractList.java | 187 while (it.hasNext()) in indexOf() 191 while (it.hasNext()) in indexOf() 363 public boolean hasNext() { in hasNext() method in AbstractList.Itr 545 while (e1.hasNext() && e2.hasNext()) { in equals() 551 return !(e1.hasNext() || e2.hasNext()); in equals() 842 public boolean hasNext() { in listIterator() method 847 if (hasNext()) in listIterator()
|
/libcore/support/src/test/java/tests/support/ |
D | Support_MapTest2.java | 43 .hasNext()); in runTest() 45 .hasNext()); in runTest() 47 .hasNext()); in runTest() 57 .hasNext()); in runTest() 59 .hasNext()); in runTest() 61 .hasNext()); in runTest()
|
D | Support_UnmodifiableCollectionTest.java | 74 while (it.hasNext()) { in runTest() 78 for (int counter = 0; it.hasNext(); counter++) { in runTest() 94 for (int counter = 0; it.hasNext(); counter++) { in runTest() 103 for (int counter = 0; it.hasNext(); counter++) { in runTest()
|
D | Support_ListTest.java | 117 for (int counter = 0; li.hasNext(); counter++) { in runTest() 143 assertTrue("list iterator hasNext(): " + i, !li.hasNext()); in t_listIterator() 145 assertTrue("list iterator hasNext(): " + i, li.hasNext()); in t_listIterator() 177 assertTrue("list iterator hasNext()2: " + i, li.hasNext()); in t_listIterator() 215 assertTrue("list iterator hasNext()3", li.hasNext()); in t_listIterator()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | ServiceLoaderTest.java | 26 assertFalse(ServiceLoader.load(UnimplementedInterface.class).iterator().hasNext()); in test_noImplementations() 34 assertTrue(it.hasNext()); in test_implementations() 36 assertTrue(it.hasNext()); in test_implementations() 38 assertFalse(it.hasNext()); in test_implementations()
|
D | OldListIteratorTest.java | 38 assertTrue(l.hasNext()); in testHasNext() 41 assertFalse(l.hasNext()); in testHasNext() 64 public boolean hasNext() { in hasNext() method in OldListIteratorTest.Mock_ListIterator 143 while(l.hasNext()) { in testPrevious()
|
D | OldAbstractSetTest.java | 34 public boolean hasNext() { in iterator() 70 public boolean hasNext() {
|
/libcore/ojluni/src/main/java/sun/net/ |
D | ProgressMonitor.java | 71 … for (Iterator<ProgressSource> iter = progressSourceList.iterator(); iter.hasNext();) { in getProgressSources() 121 … for (Iterator<ProgressListener> iter = progressListenerList.iterator(); iter.hasNext();) { in registerSource() 127 for (Iterator<ProgressListener> iter = listeners.iterator(); iter.hasNext();) { in registerSource() 158 … for (Iterator<ProgressListener> iter = progressListenerList.iterator(); iter.hasNext();) { in unregisterSource() 164 for (Iterator<ProgressListener> iter = listeners.iterator(); iter.hasNext();) { in unregisterSource() 190 … for (Iterator<ProgressListener> iter = progressListenerList.iterator(); iter.hasNext();) { in updateProgress() 196 for (Iterator<ProgressListener> iter = listeners.iterator(); iter.hasNext();) { in updateProgress()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | TreeMapExtendTest.java | 1764 while (startIterator.hasNext()) { in test_AscendingSubMap_subMap() 1768 while (endIterator.hasNext()) { in test_AscendingSubMap_subMap() 3428 for (; iterator.hasNext(); value++) { in test_Entry_setValue() 3871 assertTrue(iterator.hasNext()); 3874 assertFalse(iterator.hasNext()); 3888 assertTrue(iterator.hasNext()); 3891 assertFalse(iterator.hasNext()); 3905 assertTrue(iterator.hasNext()); 3908 assertFalse(iterator.hasNext()); 3922 assertTrue(iterator.hasNext()); [all …]
|
D | LinkedHashMapTest.java | 230 while (i.hasNext()) { in test_entrySet() 274 it.hasNext(); in test_keySet() 297 it2.hasNext(); in test_keySet() 533 for (i = 0; it1.hasNext(); i++) { in test_ordered_entrySet() 549 for (i = 0; i < sz && it3.hasNext(); i++) { in test_ordered_entrySet() 567 for (i = 1; i < sz && it2.hasNext(); i += 2) { in test_ordered_entrySet() 572 for (i = 0; i < sz && it2.hasNext(); i += 2) { in test_ordered_entrySet() 577 assertTrue("Entries left to iterate on", !it2.hasNext()); in test_ordered_entrySet() 595 for (i = 0; it1.hasNext(); i++) { in test_ordered_keySet() 609 for (i = 0; i < sz && it3.hasNext(); i++) { in test_ordered_keySet() [all …]
|
D | AbstractListTest.java | 69 while (i.hasNext()) { in test_hashCode() 103 assertTrue("Should have next", lit.hasNext()); in test_listIterator() 247 while (it.hasNext()) { in test_iterator_next() 300 assertTrue("should be more elements", iter.hasNext()); in test_subList_addAll() 349 while(li1.hasNext()&&li2.hasNext()) { in test_listIteratorI() 352 assertSame(li1.hasNext(),li2.hasNext()); in test_listIteratorI()
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | FindFirstOpTest.java | 71 assertTrue(i.hasNext()); in exerciseStream() 75 assertFalse(fs.apply(data.stream()).iterator().hasNext()); in exerciseStream() 91 assertTrue(i.hasNext()); in exerciseIntStream() 95 assertFalse(fs.apply(data.stream()).iterator().hasNext()); in exerciseIntStream() 111 assertTrue(i.hasNext()); in exerciseLongStream() 115 assertFalse(fs.apply(data.stream()).iterator().hasNext()); in exerciseLongStream() 131 assertTrue(i.hasNext()); in exerciseDoubleStream() 135 assertFalse(fs.apply(data.stream()).iterator().hasNext()); in exerciseDoubleStream()
|
D | FindAnyOpTest.java | 80 while (!contained && it.hasNext()) { in exerciseStream() 86 assertFalse(fs.apply(data.stream()).iterator().hasNext()); in exerciseStream() 104 while (!contained && it.hasNext()) { in exerciseIntStream() 110 assertFalse(fs.apply(data.stream()).iterator().hasNext()); in exerciseIntStream() 128 while (!contained && it.hasNext()) { in exerciseLongStream() 134 assertFalse(fs.apply(data.stream()).iterator().hasNext()); in exerciseLongStream() 152 while (!contained && it.hasNext()) { in exerciseDoubleStream() 158 assertFalse(fs.apply(data.stream()).iterator().hasNext()); in exerciseDoubleStream()
|
D | MatchOpTest.java | 144 if (i == null || !i.hasNext()) { in testInfinite() 151 public boolean hasNext() { in testInfinite() method in MatchOpTest.CycleIterator 152 if (i == null || !i.hasNext()) { in testInfinite() 155 return i.hasNext(); in testInfinite() 229 if (i == null || !i.hasNext()) { in testIntInfinite() 236 public boolean hasNext() { in testIntInfinite() method in MatchOpTest.CycleIterator 237 if (i == null || !i.hasNext()) { in testIntInfinite() 240 return i.hasNext(); in testIntInfinite() 314 if (i == null || !i.hasNext()) { in testLongInfinite() 321 public boolean hasNext() { in testLongInfinite() method in MatchOpTest.CycleIterator [all …]
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | Streams.java | 726 boolean hasNext; 728 hasNext = aSpliterator.tryAdvance(consumer); 729 if (!hasNext) { 731 hasNext = bSpliterator.tryAdvance(consumer); 735 hasNext = bSpliterator.tryAdvance(consumer); 736 return hasNext; 794 boolean hasNext; in tryAdvance() 796 hasNext = aSpliterator.tryAdvance(action); in tryAdvance() 797 if (!hasNext) { in tryAdvance() 799 hasNext = bSpliterator.tryAdvance(action); in tryAdvance() [all …]
|
/libcore/luni/src/main/java/libcore/util/ |
D | CollectionUtils.java | 47 while (next == null && delegate.hasNext()) { in dereferenceIterable() 55 @Override public boolean hasNext() { in dereferenceIterable() method 61 if (!hasNext()) { in dereferenceIterable()
|
/libcore/ojluni/src/main/java/javax/security/auth/ |
D | Subject.java | 858 while (pI.hasNext()) { 867 while (pI.hasNext()) { 878 while (pI.hasNext()) { 923 while (pIterator.hasNext()) { 931 while (pubCIterator.hasNext()) { 1052 public boolean hasNext() {return i.hasNext();} 1143 while (e.hasNext()) { 1171 while (e.hasNext()) { 1212 while (e.hasNext()) { 1226 while (ce.hasNext()) { [all …]
|
/libcore/ojluni/src/main/java/java/lang/ |
D | CharSequence.java | 134 public boolean hasNext() { in chars() method in CharSequence.CharIterator 139 if (hasNext()) { in chars() 205 public boolean hasNext() { in codePoints() method in CharSequence.CodePointIterator
|