Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. android/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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 27.9K 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 25.9K 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 26.2K bytes
    - Viewed (0)
Back to top