/libcore/ojluni/src/test/java/util/Collection/testlibrary/ |
D | CollectionAsserts.java | 55 while (it.hasNext()) { in assertCountSum() 67 while (it.hasNext()) { in assertConcat() 75 if (!i.hasNext()) in assertSorted() 78 while (i.hasNext()) { in assertSorted() 87 if (!i.hasNext()) in assertSorted() 90 while (i.hasNext()) { in assertSorted() 111 if (!iter.hasNext()) { in assertUnique() 116 while (iter.hasNext()) { in assertUnique() 138 while (expected.hasNext()) { in assertContents() 139 if (!actual.hasNext()) { in assertContents() [all …]
|
/libcore/ojluni/src/main/java/java/util/ |
D | AbstractCollection.java | 105 while (it.hasNext()) in contains() 109 while (it.hasNext()) in contains() 144 if (! it.hasNext()) // fewer elements than expected in toArray() 148 return it.hasNext() ? finishToArray(r, it) : r; in toArray() 189 if (! it.hasNext()) { // fewer elements than expected in toArray() 205 return it.hasNext() ? finishToArray(r, it) : r; in toArray() 222 while (it.hasNext()) { in finishToArray() 274 while (it.hasNext()) { in remove() 281 while (it.hasNext()) { in remove() 367 while (it.hasNext()) { in removeAll() [all …]
|
D | ReverseOrderListView.java | 83 public boolean hasNext() { return it.hasPrevious(); } in hasNext() method in ReverseOrderListView.DescendingIterator 101 public boolean hasNext() { in hasNext() method in ReverseOrderListView.DescendingListIterator 110 return it.hasNext(); in hasPrevious() 200 while (e1.hasNext() && e2.hasNext()) { in equals() 206 return !(e1.hasNext() || e2.hasNext()); in equals() 230 while (it.hasNext()) { in remove() 237 while (it.hasNext()) { in remove() 253 while (it.hasNext()) { in removeAll() 268 while (it.hasNext()) { in retainAll() 301 if (! it.hasNext()) in toString() [all …]
|
D | AbstractMap.java | 118 while (i.hasNext()) { in containsValue() 124 while (i.hasNext()) { in containsValue() 150 while (i.hasNext()) { in containsKey() 156 while (i.hasNext()) { in containsKey() 182 while (i.hasNext()) { in get() 188 while (i.hasNext()) { in get() 242 while (correctEntry==null && i.hasNext()) { in remove() 248 while (correctEntry==null && i.hasNext()) { in remove() 358 public boolean hasNext() { in keySet() 359 return i.hasNext(); in keySet() [all …]
|
D | ReverseOrderSortedMapView.java | 199 public boolean hasNext() { 226 public boolean hasNext() { 227 return keyIterator.hasNext(); 244 public boolean hasNext() { 245 return keyIterator.hasNext(); 291 if (! i.hasNext()) 303 if (! i.hasNext()) 340 public boolean hasNext() { 347 while (it.hasNext()) { 366 if (hasNext()) { [all …]
|
D | ReverseOrderSortedSetView.java | 77 while (i.hasNext()) { in hashCode() 88 if (! it.hasNext()) in toString() 96 if (! it.hasNext()) in toString() 212 public boolean hasNext() { in descendingIterator() method 270 public boolean hasNext() { in iterator() method 277 while (it.hasNext()) { in iterator() 296 if (hasNext()) { in iterator() 340 if (! it.hasNext()) in last() 343 while (it.hasNext()) in last()
|
D | ReverseOrderDequeView.java | 107 while (it.hasNext()) { in remove() 114 while (it.hasNext()) { in remove() 129 while (it.hasNext()) { in removeAll() 143 while (it.hasNext()) { in retainAll() 176 if (! it.hasNext()) in toString() 184 if (! it.hasNext()) in toString()
|
D | SequencedMap.java | 153 return it.hasNext() ? new NullableKeyValueHolder<>(it.next()) : null; in firstEntry() 170 return it.hasNext() ? new NullableKeyValueHolder<>(it.next()) : null; in lastEntry() 189 if (it.hasNext()) { in pollFirstEntry() 214 if (it.hasNext()) { in pollLastEntry()
|
D | Iterator.java | 66 boolean hasNext(); in hasNext() method 132 while (hasNext()) in forEachRemaining()
|
/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()
|
/libcore/ojluni/src/test/java/util/PriorityQueue/ |
D | ForgetMeNot.java | 48 check(! it.hasNext()); in noMoreElements() 91 check(it.hasNext()); in realMain() 110 check(it.hasNext()); in realMain() 113 check(it.hasNext()); in realMain() 118 check(it.hasNext()); in realMain() 122 check(it.hasNext()); in realMain() 127 check(it.hasNext()); in realMain() 129 check(it.hasNext()); in realMain() 132 check(! it.hasNext()); in realMain() 135 check(! it.hasNext()); in realMain()
|
/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 …]
|
/libcore/ojluni/src/test/java/lang/String/ |
D | Lines.java | 83 while (iterator.hasNext() && brIterator.hasNext()) { in testString() 94 if (iterator.hasNext() || brIterator.hasNext()) { in testString()
|
/libcore/ojluni/src/test/java/util/Arrays/ |
D | AsList.java | 53 assertTrue(itr.hasNext()); in testIterator() 54 assertTrue(itr.hasNext()); // must be idempotent in testIterator() 63 assertFalse(itr.hasNext()); in testIterator() 65 assertFalse(itr.hasNext()); in testIterator()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | ServiceLoaderTest.java | 27 assertFalse(ServiceLoader.load(UnimplementedInterface.class).iterator().hasNext()); in test_noImplementations() 35 assertTrue(it.hasNext()); in test_implementations() 37 assertTrue(it.hasNext()); in test_implementations() 39 assertFalse(it.hasNext()); in test_implementations() 93 assertFalse(it.hasNext()); in testLoadInstalled()
|
/libcore/luni/src/test/java/libcore/java/util/concurrent/ |
D | ConcurrentSkipListSetTest.java | 74 while (it.hasNext() && itOfClone.hasNext()) { in testClone() 79 assertFalse(it.hasNext()); in testClone() 80 assertFalse(itOfClone.hasNext()); in testClone() 90 for (i = 0; it.hasNext(); i++) { in testDescendingIterator()
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | FindFirstOpTest.java | 69 Optional<Integer> expected = i.hasNext() ? Optional.of(i.next()) : Optional.empty(); in exerciseStream() 95 assertTrue(i.hasNext()); in exerciseIntStream() 99 assertFalse(fs.apply(data.stream()).iterator().hasNext()); in exerciseIntStream() 115 assertTrue(i.hasNext()); in exerciseLongStream() 119 assertFalse(fs.apply(data.stream()).iterator().hasNext()); in exerciseLongStream() 135 assertTrue(i.hasNext()); in exerciseDoubleStream() 139 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/test/java/util/Scanner/ |
D | ScanTest.java | 230 if (!sc.hasNext(tag)) { in useCase4() 529 while (scanner.hasNext()) { in boundaryDelimTest() 574 scanner.hasNext("777"); in cacheTest() 598 scanner.hasNext("777"); in cacheTest() 610 scanner.hasNext("777"); in cacheTest() 686 Scanner::hasNext, 688 sc -> sc.hasNext(Pattern.compile("blah")), 927 while (s.hasNext()) in example1() 955 if (!s.hasNext(letters)) in findInLineTest() 962 if (!s.hasNext()) in findInLineTest() [all …]
|
/libcore/ojluni/src/test/java/util/Collections/ |
D | EnumerationAsIterator.java | 131 while (i.hasNext()) { 132 assertTrue(i.hasNext()); 139 assertFalse(i.hasNext()); 159 assertFalse(i.hasNext()); 174 if (i.hasNext()) { 183 assertFalse(i.hasNext());
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | Streams.java | 718 boolean hasNext; 720 hasNext = aSpliterator.tryAdvance(consumer); 721 if (!hasNext) { 723 hasNext = bSpliterator.tryAdvance(consumer); 727 hasNext = bSpliterator.tryAdvance(consumer); 728 return hasNext; 786 boolean hasNext; in tryAdvance() 788 hasNext = aSpliterator.tryAdvance(action); in tryAdvance() 789 if (!hasNext) { in tryAdvance() 791 hasNext = bSpliterator.tryAdvance(action); in tryAdvance() [all …]
|
/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/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()
|