Searched defs:hasNext (Results 1 - 25 of 42) sorted by relevance

12

/libcore/ojluni/src/main/java/java/util/
H A DIterator.java62 boolean hasNext(); method in interface:Iterator
105 * while (hasNext())
115 while (hasNext())
H A DListIterator.java72 boolean hasNext(); method in interface:ListIterator
H A DJumboEnumSet.java124 public boolean hasNext() { method in class:JumboEnumSet.EnumSetIterator
131 if (!hasNext())
H A DRegularEnumSet.java95 public boolean hasNext() { method in class:RegularEnumSet.EnumSetIterator
H A DServiceLoader.java331 public boolean hasNext() { method in class:ServiceLoader.LazyIterator
346 while ((pending == null) || !pending.hasNext()) {
357 if (!hasNext()) {
403 * the iterator itself. Its {@link java.util.Iterator#hasNext hasNext} and
439 public boolean hasNext() {
440 if (knownProviders.hasNext())
442 return lookupIterator.hasNext();
446 if (knownProviders.hasNext())
H A DAbstractList.java180 while (it.hasNext())
184 while (it.hasNext())
350 public boolean hasNext() { method in class:AbstractList.Itr
520 while (e1.hasNext() && e2.hasNext()) {
526 return !(e1.hasNext() || e2.hasNext());
701 public boolean hasNext() {
706 if (hasNext())
H A DEnumMap.java524 public boolean hasNext() { method in class:EnumMap.EnumMapIterator
548 if (!hasNext())
557 if (!hasNext())
568 if (!hasNext())
H A DLinkedHashMap.java394 public boolean hasNext() { method in class:LinkedHashMap.LinkedHashIterator
H A DArrayDeque.java612 public boolean hasNext() { method in class:ArrayDeque.DeqIterator
669 public boolean hasNext() { method in class:ArrayDeque.DescendingIterator
H A DPriorityQueue.java527 public boolean hasNext() { method in class:PriorityQueue.Itr
/libcore/luni/src/test/java/libcore/java/util/
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 DPrimitiveIteratorTest.java46 public boolean hasNext() { method in class:PrimitiveIteratorTest.CannedIntIterator
66 public boolean hasNext() { method in class:PrimitiveIteratorTest.CannedLongIterator
86 public boolean hasNext() { method in class:PrimitiveIteratorTest.CannedDoubleIterator
H A DSpliteratorsTest.java534 public boolean hasNext() { method in class:SpliteratorsTest.CannedIntPrimitiveIterator
554 public boolean hasNext() { method in class:SpliteratorsTest.CannedLongPrimitiveIterator
574 public boolean hasNext() { method in class:SpliteratorsTest.CannedDoublePrimitiveIterator
801 assertTrue(it.hasNext());
811 assertFalse(it.hasNext());
819 assertTrue(it.hasNext());
829 assertFalse(it.hasNext());
838 assertTrue(it.hasNext());
848 assertFalse(it.hasNext());
856 assertTrue(it.hasNext());
[all...]
/libcore/ojluni/src/main/java/sun/misc/
H A DService.java110 * while (ps.hasNext()) {
256 public boolean hasNext() throws ServiceConfigurationError { method in class:Service.LazyIterator
271 while ((pending == null) || !pending.hasNext()) {
282 if (!hasNext()) {
/libcore/ojluni/src/main/java/sun/util/locale/
H A DStringTokenIterator.java75 if (hasNext()) {
87 public boolean hasNext() { method in class:StringTokenIterator
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DAbstractSequentialListTest.java75 public boolean hasNext() { method in class:AbstractSequentialListTest.Mock_unsupportedListIterator
114 public boolean hasNext() { method in class:AbstractSequentialListTest.Mock_ListIterator
317 public boolean hasNext() {
432 public boolean hasNext() {
505 public boolean hasNext() {
/libcore/luni/src/main/java/java/util/concurrent/
H A DDelayQueue.java475 for (Iterator<E> it = q.iterator(); it.hasNext(); ) {
513 public boolean hasNext() { method in class:DelayQueue.Itr
H A DConcurrentLinkedQueue.java667 * that an element exists in hasNext(), we must return it in
669 * being removed when hasNext() was called.
698 public boolean hasNext() { method in class:ConcurrentLinkedQueue.Itr
H A DCopyOnWriteArrayList.java252 if (!i.hasNext() || !Objects.equal(o, i.next())) {
256 return !i.hasNext();
779 public boolean hasNext() { method in class:CopyOnWriteArrayList.CowIterator
H A DLinkedBlockingQueue.java730 * item to hand out so that if hasNext() reports true, we will
749 public boolean hasNext() { method in class:LinkedBlockingQueue.Itr
H A DPriorityBlockingQueue.java842 public boolean hasNext() { method in class:PriorityBlockingQueue.Itr
H A DArrayBlockingQueue.java933 * read ahead one slot, so as to not report hasNext true but then
938 * when hasNext returns false for the first time. This allows the
941 * after hasNext() returned false. Even in this case, we ensure
1083 * lastRet >= 0, because hasNext() is about to return false for the
1103 * hasNext in the common case. To allow for this, we only access
1107 public boolean hasNext() { method in class:ArrayBlockingQueue.Itr
1203 * from next(), as promised by returning true from hasNext().
H A DConcurrentLinkedDeque.java1335 * that an element exists in hasNext(), we must return it in
1337 * being removed when hasNext() was called.
1378 public boolean hasNext() { method in class:ConcurrentLinkedDeque.AbstractItr
/libcore/ojluni/src/main/java/sun/net/www/
H A DHeaderParser.java202 public boolean hasNext () { method in class:HeaderParser.ParserIterator
225 for (int i=0; k.hasNext(); i++) {
232 if (k.hasNext()) {
H A DMessageHeader.java189 public boolean hasNext () { method in class:MessageHeader.HeaderIterator
211 if (hasNext()) {
269 while (entries.hasNext()) {

Completed in 509 milliseconds

12