Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 282 for hasNext (0.05 sec)

  1. android/guava/src/com/google/common/collect/Sets.java

              final Iterator<? extends E> itr2 = set2.iterator();
    
              @Override
              @CheckForNull
              protected E computeNext() {
                if (itr1.hasNext()) {
                  return itr1.next();
                }
                while (itr2.hasNext()) {
                  E e = itr2.next();
                  if (!set1.contains(e)) {
                    return e;
                  }
                }
                return endOfData();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/TreeRangeMap.java

        if (value != null) {
          final Iterator<Entry<Cut<K>, RangeMapEntry<K, V>>> backingItr =
              entriesInMergeRange.iterator();
          Cut<K> lowerBound = range.lowerBound;
          while (backingItr.hasNext()) {
            RangeMapEntry<K, V> entry = backingItr.next().getValue();
            Cut<K> upperBound = entry.getLowerBound();
            if (!lowerBound.equals(upperBound)) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/io/CharSource.java

            @Override
            @CheckForNull
            protected String computeNext() {
              if (lines.hasNext()) {
                String next = lines.next();
                // skip last line if it's empty
                if (lines.hasNext() || !next.isEmpty()) {
                  return next;
                }
              }
              return endOfData();
            }
          };
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/Collections2Test.java

        assertTrue("Expected another permutation, but there was none.", permutations.hasNext());
        assertEquals(expectedPermutation, permutations.next());
      }
    
      private <T> void assertNoMorePermutations(Iterator<List<T>> permutations) {
        assertFalse("Expected no more permutations, but there was one.", permutations.hasNext());
        try {
          permutations.next();
          fail("Expected NoSuchElementException.");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 10:16:44 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/Streams.java

                    min(splitrA.estimateSize(), splitrB.estimateSize()), characteristics) {
                  @Override
                  public boolean tryAdvance(Consumer<? super R> action) {
                    if (itrA.hasNext() && itrB.hasNext()) {
                      action.accept(function.apply(itrA.next(), itrB.next()));
                      return true;
                    }
                    return false;
                  }
                },
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  6. impl/maven-core/src/main/java/org/apache/maven/graph/DefaultGraphBuilder.java

            Iterator<MavenProject> iterator = projects.iterator();
            while (iterator.hasNext()) {
                MavenProject project = iterator.next();
                projectNames.append(project.getGroupId()).append(":").append(project.getArtifactId());
                if (iterator.hasNext()) {
                    projectNames.append(", ");
                }
            }
            return projectNames.toString();
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/FluentIterable.java

       * remove()} is called, subsequent cycles omit the removed element, which is no longer in this
       * fluent iterable. The iterator's {@code hasNext()} method returns {@code true} until this fluent
       * iterable is empty.
       *
       * <p><b>Warning:</b> Typical uses of the resulting iterator may produce an infinite loop. You
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 24 13:42:31 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/RecordingExecutor.kt

        val actualUrls = calls.map { it.request.url.toString() }
        assertThat(actualUrls).containsExactly(*expectedUrls)
      }
    
      fun finishJob(url: String) {
        val i = calls.iterator()
        while (i.hasNext()) {
          val call = i.next()
          if (call.request.url.toString() == url) {
            i.remove()
            dispatcherTest.dispatcher.finishedAccessor(call)
            return
          }
        }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/collection/IteratorEnumeration.java

            assertArgumentNotNull("iterable", iterable);
            this.iterator = iterable.iterator();
        }
    
        @Override
        public boolean hasMoreElements() {
            return iterator.hasNext();
        }
    
        @Override
        public T nextElement() {
            return iterator.next();
        }
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/ListsTest.java

        assertTrue(iterator.hasNext());
        assertEquals("1", iterator.next());
        assertTrue(iterator.hasNext());
        assertEquals("2", iterator.next());
        assertTrue(iterator.hasNext());
        assertEquals("3", iterator.next());
        assertTrue(iterator.hasNext());
        assertEquals("4", iterator.next());
        assertFalse(iterator.hasNext());
        try {
          iterator.next();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35K bytes
    - Viewed (0)
Back to top