Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for expectedValueCollectionSize (0.5 sec)

  1. guava/src/com/google/common/collect/ImmutableMultimap.java

         *
         * <p>This gets overridden in ImmutableSetMultimap.Builder to only trust the size of {@code
         * values} if it is a Set and therefore probably already deduplicated.
         */
        int expectedValueCollectionSize(int defaultExpectedValues, Iterable<?> values) {
          if (values instanceof Collection<?>) {
            Collection<?> collection = (Collection<?>) values;
            return max(defaultExpectedValues, collection.size());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 28.6K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ImmutableSetMultimap.java

              ? ImmutableSet.builderWithExpectedSize(expectedSize)
              : new ImmutableSortedSet.Builder<V>(valueComparator, expectedSize);
        }
    
        @Override
        int expectedValueCollectionSize(int defaultExpectedValues, Iterable<?> values) {
          // Only trust the size of `values` if it is a Set and therefore probably already deduplicated.
          if (values instanceof Set<?>) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableSetMultimap.java

              ? ImmutableSet.builderWithExpectedSize(expectedSize)
              : new ImmutableSortedSet.Builder<V>(valueComparator, expectedSize);
        }
    
        @Override
        int expectedValueCollectionSize(int defaultExpectedValues, Iterable<?> values) {
          // Only trust the size of `values` if it is a Set and therefore probably already deduplicated.
          if (values instanceof Set<?>) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25.8K bytes
    - Viewed (0)
Back to top