Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for inferDistinctElements (0.14 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

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

       * distinct elements is only computed if {@code elements} is an instance of {@code Multiset};
       * otherwise the default value of 11 is returned.
       */
      static int inferDistinctElements(Iterable<?> elements) {
        if (elements instanceof Multiset) {
          return ((Multiset<?>) elements).elementSet().size();
        }
        return 11; // initial capacity will be rounded up to 16
      }
    
      /**
    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)
  2. guava/src/com/google/common/collect/Multisets.java

       * distinct elements is only computed if {@code elements} is an instance of {@code Multiset};
       * otherwise the default value of 11 is returned.
       */
      static int inferDistinctElements(Iterable<?> elements) {
        if (elements instanceof Multiset) {
          return ((Multiset<?>) elements).elementSet().size();
        }
        return 11; // initial capacity will be rounded up to 16
      }
    
      /**
    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)
  3. android/guava/src/com/google/common/collect/ImmutableMultiset.java

          if (!result.isPartialView()) {
            return result;
          }
        }
        ImmutableMultiset.Builder<E> builder =
            new ImmutableMultiset.Builder<E>(Multisets.inferDistinctElements(elements));
        builder.addAll(elements);
        return builder.build();
      }
    
      /**
       * Returns an immutable multiset containing the given elements, in the "grouped iteration order"
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 21:07:18 GMT 2025
    - 22.3K bytes
    - Click Count (0)
Back to Top