Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 601 - 610 of 623 for iterables (0.17 seconds)

  1. guava-tests/test/com/google/common/math/StatsTest.java

        assertThat(MANY_VALUES_STATS_VARARGS.populationVariance())
            .isWithin(ALLOWED_ERROR)
            .of(MANY_VALUES_SUM_OF_SQUARES_OF_DELTAS / MANY_VALUES_COUNT);
        // For datasets of many double values created from an iterable, we test many combinations of
        // finite and non-finite values:
        for (ManyValues values : ALL_MANY_VALUES) {
          double populationVariance = Stats.of(values.asIterable()).populationVariance();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:11:48 GMT 2026
    - 33.4K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java

                .createTestSuite());
        suite.addTest(
            SetMultimapTestSuiteBuilder.using(new ImmutableSetMultimapCopyOfEntriesGenerator())
                .named("ImmutableSetMultimap.copyOf[Iterable<Entry>]")
                .withFeatures(ALLOWS_ANY_NULL_QUERIES, KNOWN_ORDER, SERIALIZABLE, CollectionSize.ANY)
                .createTestSuite());
        return suite;
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 28.9K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/collect/ImmutableSortedMapTest.java

                    CollectionFeature.KNOWN_ORDER,
                    MapFeature.REJECTS_DUPLICATES_AT_CREATION,
                    MapFeature.ALLOWS_ANY_NULL_QUERIES)
                .named("ImmutableSortedMap.copyOf[Iterable<Entry>]")
                .createTestSuite());
    
        suite.addTest(
            ListTestSuiteBuilder.using(new ImmutableSortedMapEntryListGenerator())
                .named("ImmutableSortedMap.entrySet.asList")
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 29.8K bytes
    - Click Count (0)
  4. docs/zh-hant/docs/tutorial/query-params-str-validations.md

    {* ../../docs_src/query_params_str_validations/tutorial015_an_py310.py ln[16:19] hl[17] *}
    
    #### 隨機項目 { #a-random-item }
    
    透過 `data.items()` 我們會得到一個包含每個字典項目鍵值對 tuple 的 <dfn title="可以用 for 迴圈遍歷的東西,例如 list、set 等等。">iterable object</dfn>。
    
    我們用 `list(data.items())` 把這個可疊代物件轉成正式的 `list`。
    
    接著用 `random.choice()` 從清單中取得一個「隨機值」,也就是一個 `(id, name)` 的 tuple。可能像是 `("imdb-tt0371724", "The Hitchhiker's Guide to the Galaxy")`。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 14.8K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/net/MediaType.java

       *
       * @throws IllegalArgumentException if either {@code attribute} or {@code values} is invalid
       * @since 24.0
       */
      public MediaType withParameters(String attribute, Iterable<String> values) {
        checkNotNull(attribute);
        checkNotNull(values);
        String normalizedAttribute = normalizeToken(attribute);
        ImmutableListMultimap.Builder<String, String> updatedParameters =
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Oct 02 01:46:40 GMT 2025
    - 48K bytes
    - Click Count (0)
  6. android/guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java

        assertFalse(ArbitraryInstances.get(PeekingIterator.class).hasNext());
        assertFalse(ArbitraryInstances.get(ListIterator.class).hasNext());
        assertEquals(ImmutableSet.of(), ArbitraryInstances.get(Iterable.class));
        assertEquals(ImmutableSet.of(), ArbitraryInstances.get(Set.class));
        assertEquals(ImmutableSet.of(), ArbitraryInstances.get(ImmutableSet.class));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 22.4K bytes
    - Click Count (0)
  7. guava/src/com/google/common/collect/LinkedListMultimap.java

       *
       * <p>The returned list is immutable and implements {@link java.util.RandomAccess}.
       */
      @CanIgnoreReturnValue
      @Override
      public List<V> replaceValues(@ParametricNullness K key, Iterable<? extends V> values) {
        List<V> oldValues = getCopy(key);
        ListIterator<V> keyValues = new ValueForKeyIterator(key);
        Iterator<? extends V> newValues = values.iterator();
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 27K bytes
    - Click Count (0)
  8. guava/src/com/google/common/base/FinalizableReferenceQueue.java

            ((FinalizableReference) reference).finalizeReferent();
          } catch (Throwable t) {
            logger.log(Level.SEVERE, "Error cleaning up after reference.", t);
          }
        }
      }
    
      /**
       * Iterates through the given loaders until it finds one that will load Finalizer.
       *
       * @return a {@link Class} for {@link Finalizer} or {@code null} if none of the loaders load it
       */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 19:26:59 GMT 2026
    - 15.8K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/reflect/ClassPathTest.java

        assertThat(scanResourceNames(ClassLoader.getSystemClassLoader()))
            .contains("com/google/common/reflect/ClassPathTest.class");
      }
    
      private static ClassPath.ClassInfo findClass(
          Iterable<ClassPath.ClassInfo> classes, Class<?> cls) {
        for (ClassPath.ClassInfo classInfo : classes) {
          if (classInfo.getName().equals(cls.getName())) {
            return classInfo;
          }
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 25.8K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/collect/LinkedListMultimap.java

       *
       * <p>The returned list is immutable and implements {@link java.util.RandomAccess}.
       */
      @CanIgnoreReturnValue
      @Override
      public List<V> replaceValues(@ParametricNullness K key, Iterable<? extends V> values) {
        List<V> oldValues = getCopy(key);
        ListIterator<V> keyValues = new ValueForKeyIterator(key);
        Iterator<? extends V> newValues = values.iterator();
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 26.6K bytes
    - Click Count (0)
Back to Top