Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 84 for hasNext (0.74 sec)

  1. okhttp/src/test/java/okhttp3/internal/connection/RouteSelectorTest.kt

        assertThat(routeSelector.hasNext()).isTrue()
        dns[uriHost] = dns.allocate(2)
        val selection = routeSelector.next()
        assertRoute(selection.next(), address, Proxy.NO_PROXY, dns.lookup(uriHost, 0), uriPort)
        assertRoute(selection.next(), address, Proxy.NO_PROXY, dns.lookup(uriHost, 1), uriPort)
        assertThat(selection.hasNext()).isFalse()
        assertThat(routeSelector.hasNext()).isFalse()
        dns.assertRequests(uriHost)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Mar 06 17:33:38 GMT 2024
    - 20.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableMultimap.java

          @CheckForNull K currentKey = null;
          Iterator<V> valueItr = Iterators.emptyIterator();
    
          @Override
          public boolean hasNext() {
            return valueItr.hasNext() || asMapItr.hasNext();
          }
    
          @Override
          public Entry<K, V> next() {
            if (!valueItr.hasNext()) {
              Entry<K, ? extends ImmutableCollection<V>> entry = asMapItr.next();
              currentKey = entry.getKey();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 24.7K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/Helpers.java

        while (expectedIter.hasNext() && actualIter.hasNext()) {
          if (!equal(expectedIter.next(), actualIter.next())) {
            Assert.fail(
                "contents were not equal and in the same order: "
                    + "expected = "
                    + expected
                    + ", actual = "
                    + actual);
          }
        }
    
        if (expectedIter.hasNext() || actualIter.hasNext()) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 17.7K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ImmutableMultimap.java

          @CheckForNull K currentKey = null;
          Iterator<V> valueItr = Iterators.emptyIterator();
    
          @Override
          public boolean hasNext() {
            return valueItr.hasNext() || asMapItr.hasNext();
          }
    
          @Override
          public Entry<K, V> next() {
            if (!valueItr.hasNext()) {
              Entry<K, ? extends ImmutableCollection<V>> entry = asMapItr.next();
              currentKey = entry.getKey();
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 25.6K bytes
    - Viewed (0)
  5. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

      }
    
      /**
       * Implementation for the EntryIterator, which is used to build Key and Value iterators.
       *
       * <p>Expiration is only checked on hasNext(), so as to ensure that a next() call never returns
       * null when hasNext() has already been called.
       */
      class EntryIterator implements Iterator<Entry<K, V>> {
        Iterator<Entry<K, Timestamped<V>>> iterator;
        Entry<K, Timestamped<V>> lastEntry;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/connection/RealRoutePlanner.kt

        }
    
        // If we have a routes left, use 'em.
        if (routeSelection?.hasNext() == true) return true
    
        // If we haven't initialized the route selector yet, assume it'll have at least one route.
        val localRouteSelector = routeSelector ?: return true
    
        // If we do have a route selector, use its routes.
        return localRouteSelector.hasNext()
      }
    
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 12K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/FilteredEntryMultimap.java

        Iterator<Entry<K, Collection<V>>> entryIterator = unfiltered.asMap().entrySet().iterator();
        boolean changed = false;
        while (entryIterator.hasNext()) {
          Entry<K, Collection<V>> entry = entryIterator.next();
          K key = entry.getKey();
          Collection<V> collection = filterCollection(entry.getValue(), new ValuePredicate(key));
          if (!collection.isEmpty()
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

        public String toString() {
          return toString;
        }
      }
    
      Stimulus<E, Iterator<E>> hasNext =
          new Stimulus<E, Iterator<E>>("hasNext") {
            @Override
            void executeAndCompare(ListIterator<E> reference, Iterator<E> target) {
              assertEquals(reference.hasNext(), target.hasNext());
            }
          };
      Stimulus<E, Iterator<E>> next =
          new Stimulus<E, Iterator<E>>("next") {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/Helpers.java

        while (expectedIter.hasNext() && actualIter.hasNext()) {
          if (!equal(expectedIter.next(), actualIter.next())) {
            Assert.fail(
                "contents were not equal and in the same order: "
                    + "expected = "
                    + expected
                    + ", actual = "
                    + actual);
          }
        }
    
        if (expectedIter.hasNext() || actualIter.hasNext()) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 17.7K bytes
    - Viewed (0)
  10. 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) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
Back to top