Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 770 for NEXT (0.03 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionIteratorTester.java

        }.test();
      }
    
      public void testIteratorNoSuchElementException() {
        Iterator<E> iterator = collection.iterator();
        while (iterator.hasNext()) {
          iterator.next();
        }
    
        assertThrows(NoSuchElementException.class, () -> iterator.next());
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6K bytes
    - Viewed (0)
  2. cmd/url_test.go

    	// the actual benchmark for PutObject starts here. Reset the benchmark timer.
    	b.ResetTimer()
    
    	if err := req.ParseForm(); err != nil {
    		b.Fatal(err)
    	}
    
    	b.RunParallel(func(pb *testing.PB) {
    		for pb.Next() {
    			req.Form.Get("uploadId")
    		}
    	})
    
    	// Benchmark ends here. Stop timer.
    	b.StopTimer()
    }
    
    // BenchmarkURLQuery - benchmark URL memory allocations
    func BenchmarkURLQuery(b *testing.B) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Nov 16 17:28:29 UTC 2021
    - 2K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/HashBiMap.java

          if (!hasNext()) {
            throw new NoSuchElementException();
          }
    
          // requireNonNull is safe because of the hasNext check.
          BiEntry<K, V> entry = requireNonNull(next);
          next = entry.nextInKeyInsertionOrder;
          toRemove = entry;
          remaining--;
          return output(entry);
        }
    
        @Override
        public void remove() {
          if (modCount != expectedModCount) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 13 14:11:58 UTC 2023
    - 24.5K bytes
    - Viewed (0)
  4. internal/grid/benchmark_test.go

    				b.RunParallel(func(pb *testing.PB) {
    					rng := rand.New(rand.NewSource(time.Now().UnixNano()))
    					n := 0
    					var latency int64
    					managers := grid.Managers
    					hosts := grid.Hosts
    					for pb.Next() {
    						// Pick a random manager.
    						src, dst := rng.Intn(len(managers)), rng.Intn(len(managers))
    						if src == dst {
    							dst = (dst + 1) % len(managers)
    						}
    						local := managers[src]
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/AbstractRangeSetTest.java

        Iterator<Range<C>> itr = rangeSet.asRanges().iterator();
        Range<C> expectedSpan = null;
        if (itr.hasNext()) {
          expectedSpan = itr.next();
          while (itr.hasNext()) {
            expectedSpan = expectedSpan.span(itr.next());
          }
        }
    
        try {
          Range<C> span = rangeSet.span();
          assertEquals(expectedSpan, span);
        } catch (NoSuchElementException e) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 20:09:59 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  6. android/guava-tests/benchmark/com/google/common/base/JoinerBenchmark.java

          StringBuilder sb = new StringBuilder();
          Iterator<String> iterator = components.iterator();
          if (iterator.hasNext()) {
            sb.append(iterator.next().toString());
            while (iterator.hasNext()) {
              sb.append(DELIMITER_STRING);
              sb.append(iterator.next());
            }
          }
          dummy ^= sb.toString().length();
        }
        return dummy;
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.9K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/SimpleAbstractMultisetTest.java

            @Override
            public boolean hasNext() {
              return backingEntries.hasNext();
            }
    
            @Override
            public Multiset.Entry<E> next() {
              final Map.Entry<E, Integer> mapEntry = backingEntries.next();
              return new Multisets.AbstractEntry<E>() {
                @Override
                public E getElement() {
                  return mapEntry.getKey();
                }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  8. docs/en/docs/advanced/middleware.md

    ## Integrated middlewares
    
    **FastAPI** includes several middlewares for common use cases, we'll see next how to use them.
    
    /// note | "Technical Details"
    
    For the next examples, you could also use `from starlette.middleware.something import SomethingMiddleware`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 16:45:50 UTC 2024
    - 4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Multisets.java

                  Entry<? extends E> entry1 = iterator1.next();
                  E element = entry1.getElement();
                  int count = max(entry1.getCount(), multiset2.count(element));
                  return immutableEntry(element, count);
                }
                while (iterator2.hasNext()) {
                  Entry<? extends E> entry2 = iterator2.next();
                  E element = entry2.getElement();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Streams.java

                  @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;
                  }
                },
                isParallel)
            .onClose(streamA::close)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 37.4K bytes
    - Viewed (0)
Back to top