Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 292 for hasNext (0.41 sec)

  1. guava/src/com/google/common/base/AbstractIterator.java

          state = State.READY;
          return true;
        }
        return false;
      }
    
      @Override
      @ParametricNullness
      public final T next() {
        if (!hasNext()) {
          throw new NoSuchElementException();
        }
        state = State.NOT_READY;
        // Safe because hasNext() ensures that tryToComputeNext() has put a T into `next`.
        T result = uncheckedCastNullableTToT(next);
        next = null;
        return result;
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Multisets.java

          this.multiset = multiset;
          this.entryIterator = entryIterator;
        }
    
        @Override
        public boolean hasNext() {
          return laterCount > 0 || entryIterator.hasNext();
        }
    
        @Override
        @ParametricNullness
        public E next() {
          if (!hasNext()) {
            throw new NoSuchElementException();
          }
          if (laterCount == 0) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 18:35:44 UTC 2025
    - 41.3K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/Multisets.java

          this.multiset = multiset;
          this.entryIterator = entryIterator;
        }
    
        @Override
        public boolean hasNext() {
          return laterCount > 0 || entryIterator.hasNext();
        }
    
        @Override
        @ParametricNullness
        public E next() {
          if (!hasNext()) {
            throw new NoSuchElementException();
          }
          if (laterCount == 0) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 18:35:44 UTC 2025
    - 41.2K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/collection/EmptyIteratorTest.java

            emptyIterator.remove();
        }
    
        /**
         * Test method for
         * {@link org.codelibs.core.collection.EmptyIterator#hasNext()}.
         */
        @Test
        public void testHasNext() {
            final EmptyIterator<String> emptyIterator = new EmptyIterator<String>();
            assertThat(emptyIterator.hasNext(), is(false));
        }
    
        /**
         * Test method for {@link org.codelibs.core.collection.EmptyIterator#next()}.
         */
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  5. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleDebugLogger.java

                ProjectSegment projectBuild = it.next();
    
                logger.debug("Project: " + projectBuild.getProject().getId());
                logger.debug("Tasks:   " + projectBuild.getTaskSegment().getTasks());
                logger.debug("Style:   " + (projectBuild.getTaskSegment().isAggregating() ? "Aggregating" : "Regular"));
    
                if (it.hasNext()) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  6. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt

            assertThat(header.length).isEqualTo(5L)
            assertThat(derReader.readOctetString()).isEqualTo("Jones".encodeUtf8())
          }
    
          assertThat(derReader.hasNext()).isFalse()
        }
    
        assertThat(derReader.hasNext()).isFalse()
      }
    
      @Test fun `encode tagged implicit prefixed type`() {
        // Type1 ::= VisibleString
        // Type2 ::= [APPLICATION 3] IMPLICIT Type1
        // Type3 ::= [2] Type2
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 31.7K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/AbstractMapBasedMultiset.java

        Iterator<Map.Entry<E, Count>> backingEntries = backingMap.entrySet().iterator();
        return new Iterator<E>() {
          Map.@Nullable Entry<E, Count> toRemove;
    
          @Override
          public boolean hasNext() {
            return backingEntries.hasNext();
          }
    
          @Override
          @ParametricNullness
          public E next() {
            Map.Entry<E, Count> mapEntry = backingEntries.next();
            toRemove = mapEntry;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/Helpers.java

        while (expectedIter.hasNext() && actualIter.hasNext()) {
          if (!equal(expectedIter.next(), actualIter.next())) {
            fail(
                "contents were not equal and in the same order: "
                    + "expected = "
                    + expected
                    + ", actual = "
                    + actual);
          }
        }
    
        if (expectedIter.hasNext() || actualIter.hasNext()) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Oct 10 23:13:45 UTC 2025
    - 17.2K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/collection/EnumerationIteratorTest.java

            vector.add("a");
            final EnumerationIterator<String> itr = new EnumerationIterator<String>(vector.elements());
            assertThat(itr.hasNext(), is(true));
            assertThat(itr.next(), is("a"));
            assertThat(itr.hasNext(), is(not(true)));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testRemove() throws Exception {
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/ShareEnumIterator.java

                    0L, 0L);
        }
    
        /**
         * {@inheritDoc}
         *
         * @see java.util.Iterator#hasNext()
         */
        @Override
        public boolean hasNext() {
            return this.next != null;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see java.util.Iterator#next()
         */
        @Override
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3.5K bytes
    - Viewed (0)
Back to top