Searched refs:hasNext (Results 1 - 25 of 159) sorted by relevance

1234567

/libcore/luni/src/main/java/java/util/
H A DIterator.java24 * methods {@code next} and {@code hasNext()} may throw a {@code ConcurrentModificationException}.
40 public boolean hasNext(); method in interface:Iterator
48 * @see #hasNext
H A DAbstractCollection.java75 while (it.hasNext()) {
101 while (it.hasNext()) {
129 while (it.hasNext()) {
135 while (it.hasNext()) {
166 while (it.hasNext()) {
227 while (it.hasNext()) {
234 while (it.hasNext()) {
276 while (it.hasNext()) {
317 while (it.hasNext()) {
371 while (it.hasNext()) {
[all...]
H A DAbstractSet.java78 while (it.hasNext()) {
101 while (it.hasNext()) {
109 while (it.hasNext()) {
H A DListIterator.java48 public boolean hasNext(); method in interface:ListIterator
65 * @see #hasNext
H A DListResourceBundle.java73 if (local.hasNext()) {
80 if (local.hasNext()) {
97 return it.hasNext();
H A DAbstractMap.java192 while (it.hasNext()) {
198 while (it.hasNext()) {
216 while (it.hasNext()) {
222 while (it.hasNext()) {
284 while (it.hasNext()) {
291 while (it.hasNext()) {
310 while (it.hasNext()) {
346 public boolean hasNext() {
347 return setIterator.hasNext();
394 while (it.hasNext()) {
[all...]
H A DAbstractSequentialList.java45 while (colIt.hasNext()) {
83 if (!it.hasNext()) {
H A DAbstractList.java48 public boolean hasNext() { method in class:AbstractList.SimpleListIterator
191 public boolean hasNext() { method in class:AbstractList.SubAbstractList.SubAbstractListIterator
450 while (it.hasNext()) {
492 while (it1.hasNext()) {
526 while (it.hasNext()) {
545 while (it.hasNext()) {
551 while (it.hasNext()) {
/libcore/support/src/test/java/tests/support/
H A DSupport_MapTest2.java43 .hasNext());
45 .hasNext());
47 .hasNext());
57 .hasNext());
59 .hasNext());
61 .hasNext());
H A DSupport_UnmodifiableCollectionTest.java74 while (it.hasNext()) {
78 for (int counter = 0; it.hasNext(); counter++) {
94 for (int counter = 0; it.hasNext(); counter++) {
103 for (int counter = 0; it.hasNext(); counter++) {
H A DSupport_ListTest.java117 for (int counter = 0; li.hasNext(); counter++) {
143 assertTrue("list iterator hasNext(): " + i, !li.hasNext());
145 assertTrue("list iterator hasNext(): " + i, li.hasNext());
177 assertTrue("list iterator hasNext()2: " + i, li.hasNext());
215 assertTrue("list iterator hasNext()3", li.hasNext());
/libcore/luni/src/test/java/libcore/java/util/
H A DServiceLoaderTest.java26 assertFalse(ServiceLoader.load(UnimplementedInterface.class).iterator().hasNext());
34 assertTrue(it.hasNext());
36 assertTrue(it.hasNext());
38 assertFalse(it.hasNext());
H A DOldAbstractSetTest.java34 public boolean hasNext() {
70 public boolean hasNext() {
H A DOldListIteratorTest.java38 assertTrue(l.hasNext());
41 assertFalse(l.hasNext());
64 public boolean hasNext() { method in class:OldListIteratorTest.Mock_ListIterator
143 while(l.hasNext()) {
H A DCollectionsTest.java51 assertFalse(i.hasNext());
72 assertFalse(i.hasNext());
/libcore/luni/src/main/java/libcore/util/
H A DCollectionUtils.java47 while (next == null && delegate.hasNext()) {
55 @Override public boolean hasNext() {
61 if (!hasNext()) {
/libcore/luni/src/main/java/java/util/prefs/
H A DNodeSet.java13 while(nodes.hasNext()) {
/libcore/luni/src/main/java/org/apache/harmony/security/x509/
H A DExtendedKeyUsage.java85 for (Iterator<?> it = keys.iterator(); it.hasNext();) {
87 if (it.hasNext()) {
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DTreeMapExtendTest.java1764 while (startIterator.hasNext()) {
1768 while (endIterator.hasNext()) {
3428 for (; iterator.hasNext(); value++) {
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...]
H A DLinkedHashMapTest.java224 while (i.hasNext()) {
268 it.hasNext();
291 it2.hasNext();
527 for (i = 0; it1.hasNext(); i++) {
543 for (i = 0; i < sz && it3.hasNext(); i++) {
561 for (i = 1; i < sz && it2.hasNext(); i += 2) {
566 for (i = 0; i < sz && it2.hasNext(); i += 2) {
571 assertTrue("Entries left to iterate on", !it2.hasNext());
589 for (i = 0; it1.hasNext(); i++) {
603 for (i = 0; i < sz && it3.hasNext();
[all...]
H A DAbstractListTest.java69 while (i.hasNext()) {
103 assertTrue("Should have next", lit.hasNext());
247 while (it.hasNext()) {
300 assertTrue("should be more elements", iter.hasNext());
349 while(li1.hasNext()&&li2.hasNext()) {
352 assertSame(li1.hasNext(),li2.hasNext());
/libcore/dom/src/test/java/org/w3c/domts/
H A DDOMErrorMonitor.java59 while (iter.hasNext()) {
/libcore/luni/src/main/java/java/text/
H A DAttributedString.java164 while (it.hasNext()) {
193 while (it.hasNext()) {
208 while (it.hasNext()) {
236 while (it.hasNext()) {
287 while (it.hasNext()) {
304 while (it.hasNext()) {
335 while (it.hasNext()) {
407 while (it.hasNext()) {
444 while (it.hasNext()) {
554 while (it.hasNext()) {
[all...]
/libcore/luni/src/main/java/java/net/
H A DCookieStoreImpl.java71 for (Iterator<HttpCookie> i = cookiesForUri.iterator(); i.hasNext(); ) {
88 for (Iterator<HttpCookie> i = entryCookies.iterator(); i.hasNext(); ) {
107 for (Iterator<HttpCookie> i = list.iterator(); i.hasNext(); ) {
/libcore/luni/src/test/java/libcore/java/util/concurrent/
H A DCopyOnWriteArrayListTest.java125 assertFalse(bcd.hasNext());
231 assertTrue(i.hasNext());
236 assertTrue(i.hasNext());
241 assertTrue(i.hasNext());
246 assertTrue(i.hasNext());
251 assertTrue(i.hasNext());

Completed in 2365 milliseconds

1234567