Home
last modified time | relevance | path

Searched refs:hasNext (Results 1 – 25 of 241) sorted by relevance

12345678910

/libcore/ojluni/src/main/java/java/util/
DAbstractCollection.java101 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 …]
DAbstractSet.java123 while (i.hasNext()) { in hashCode()
173 for (Iterator<?> i = c.iterator(); i.hasNext(); ) in removeAll()
176 for (Iterator<?> i = iterator(); i.hasNext(); ) { in removeAll()
DIterator.java62 boolean hasNext(); in hasNext() method
115 while (hasNext()) in forEachRemaining()
DPrimitiveIterator.java114 while (hasNext()) in forEachRemaining()
188 while (hasNext()) in forEachRemaining()
261 while (hasNext()) in forEachRemaining()
DSpliterators.java679 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 …]
DServiceLoader.java354 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()
DAbstractList.java187 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()
DListIterator.java72 boolean hasNext(); in hasNext() method
/libcore/support/src/test/java/tests/support/
DSupport_MapTest2.java43 .hasNext()); in runTest()
45 .hasNext()); in runTest()
47 .hasNext()); in runTest()
57 .hasNext()); in runTest()
59 .hasNext()); in runTest()
61 .hasNext()); in runTest()
/libcore/luni/src/test/java/libcore/java/util/
DServiceLoaderTest.java26 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()
DOldListIteratorTest.java38 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()
DOldAbstractSetTest.java34 public boolean hasNext() { in iterator()
70 public boolean hasNext() {
/libcore/ojluni/src/main/java/sun/net/
DProgressMonitor.java71 … 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/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DFindAnyOpTest.java80 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()
DMatchOpTest.java144 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/luni/src/main/java/libcore/util/
DCollectionUtils.java47 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/java/util/stream/
DStreams.java726 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/ojluni/src/main/java/javax/security/auth/
DSubject.java858 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/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DLinkedHashMapTest.java230 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 …]
DSortedMapTestBase.java101 while (i.hasNext()) { in testKeySet()
173 while (i.hasNext()) { in testValues()
269 .hasNext()); in testIsEmpty2()
276 .hasNext()); in testIsEmpty2()
282 assertFalse(map.entrySet().iterator().hasNext()); in testIsEmpty2()
283 assertFalse(map.keySet().iterator().hasNext()); in testIsEmpty2()
284 assertFalse(map.values().iterator().hasNext()); in testIsEmpty2()
339 while (i.hasNext()) { in compareIterators()
DAbstractListTest.java69 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()
DAbstractCollectionTest.java146 public boolean hasNext() { in test_removeAllLjava_util_Collection()
189 public boolean hasNext() { in test_retainAllLjava_util_Collection()
226 public boolean hasNext() { in test_toArray()
267 public boolean hasNext() { in test_toArray$Ljava_lang_Object()
DArrayDequeTest.java596 assertFalse(testQue.iterator().hasNext()); in test_iterator()
623 assertTrue(result.hasNext()); in test_iterator()
626 assertFalse(result.hasNext()); in test_iterator()
639 assertTrue(ad.iterator().hasNext()); in test_iterator()
642 assertTrue(iter.hasNext()); in test_iterator()
654 assertTrue(iter.hasNext()); in test_iterator()
665 assertTrue(iter.hasNext()); in test_iterator()
669 assertFalse(iter.hasNext()); in test_iterator()
672 assertFalse(iter.hasNext()); in test_iterator()
679 assertFalse(testQue.descendingIterator().hasNext()); in test_descendingIterator()
[all …]
/libcore/luni/src/test/java/tests/security/cert/
DCertificateFactory1Test.java301 assertEquals("Incorrect encodings", it1.hasNext(), it2.hasNext()); in testCertificateFactory09()
302 while (it1.hasNext()) { in testCertificateFactory09()
306 while (it2.hasNext()) { in testCertificateFactory09()
317 assertEquals("Incorrect encodings", it1.hasNext(), it2.hasNext()); in testCertificateFactory09()
318 while (it1.hasNext()) { in testCertificateFactory09()
322 while (it2.hasNext()) { in testCertificateFactory09()
504 while (it.hasNext()) { in testCertificateFactory12()
556 while (it.hasNext()) { in testCertificateFactory13()
/libcore/ojluni/src/main/java/sun/util/locale/
DStringTokenIterator.java75 if (hasNext()) { in next()
87 public boolean hasNext() { in hasNext() method in StringTokenIterator

12345678910