Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 40 of 380 for hasNext (0.13 seconds)

  1. guava-tests/test/com/google/common/collect/AbstractRangeSetTest.java

        assertEquals(rangeSet.asDescendingSetOfRanges().isEmpty(), rangeSet.isEmpty());
        assertEquals(!rangeSet.asRanges().iterator().hasNext(), rangeSet.isEmpty());
        assertEquals(!rangeSet.asDescendingSetOfRanges().iterator().hasNext(), rangeSet.isEmpty());
    
        List<Range<C>> asRanges = ImmutableList.copyOf(rangeSet.asRanges());
    
        // test that connected ranges are coalesced
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  2. api/maven-api-xml/src/main/java/org/apache/maven/api/xml/ImmutableCollections.java

                    @Override
                    public Iterator<Entry<Object, Object>> iterator() {
                        return new Iterator<>() {
                            @Override
                            public boolean hasNext() {
                                return false;
                            }
    
                            @Override
                            public Entry<Object, Object> next() {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Jul 07 11:47:42 GMT 2025
    - 7.8K bytes
    - Click Count (0)
  3. guava-testlib/src/com/google/common/collect/testing/IteratorTester.java

     *
     * <p>For instance, if <i>steps</i> is 5, one example sequence that will be tested is:
     *
     * <ol>
     *   <li>remove();
     *   <li>hasNext()
     *   <li>hasNext();
     *   <li>remove();
     *   <li>next();
     * </ol>
     *
     * <p>This particular order of operations may be unrealistic, and testing all 3^5 of them may be
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 4.3K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/core/io/LineIterator.java

            this.reader = reader;
        }
    
        @Override
        public boolean hasNext() {
            if (line == EMPTY) {
                line = ReaderUtil.readLine(reader);
            }
            return line != null;
        }
    
        @Override
        public String next() {
            if (!hasNext()) {
                throw new NoSuchElementException();
            }
            final String result = line;
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jun 19 09:12:22 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  5. 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;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Aug 11 19:31:30 GMT 2025
    - 10.2K bytes
    - Click Count (0)
  6. src/test/java/jcifs/smb/DirFileEntryEnumIteratorBaseTest.java

            // Act + Assert
            assertTrue(it.hasNext());
            assertEquals("a", it.next().getName(), "First element should be initial from open()");
            assertTrue(it.hasNext());
            assertEquals("b", it.next().getName(), "Next element should skip '.' and '..'");
            assertFalse(it.hasNext(), "Iterator exhausted after valid entries");
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 14.5K bytes
    - Click Count (0)
  7. guava/src/com/google/common/collect/AbstractIndexedListIterator.java

        checkPositionIndex(position, size);
        this.size = size;
        this.position = position;
      }
    
      @Override
      public final boolean hasNext() {
        return position < size;
      }
    
      @Override
      @ParametricNullness
      public final E next() {
        if (!hasNext()) {
          throw new NoSuchElementException();
        }
        return get(position++);
      }
    
      @Override
      public final int nextIndex() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 3.2K bytes
    - Click Count (0)
  8. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/VersionRange.java

                            // advance res2
                            if (i2.hasNext()) {
                                res2 = i2.next();
                            } else {
                                done = true;
                            }
                        } else {
                            // advance res1
                            if (i1.hasNext()) {
                                res1 = i1.next();
                            } else {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Jul 23 17:27:08 GMT 2025
    - 19K bytes
    - Click Count (0)
  9. 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) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 41.3K bytes
    - Click Count (0)
  10. 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) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 41.2K bytes
    - Click Count (0)
Back to Top