Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 6 of 6 for newLinkedHashMapWithExpectedSize (0.16 seconds)

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

        return multiset;
      }
    
      private LinkedHashMultiset() {
        super(new LinkedHashMap<E, Count>());
      }
    
      private LinkedHashMultiset(int distinctElements) {
        super(Maps.newLinkedHashMapWithExpectedSize(distinctElements));
      }
    
      /**
       * @serialData the number of distinct elements, the first element, its count, the second element,
       *     its count, and so on
       */
      @GwtIncompatible
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Dec 05 23:15:58 GMT 2025
    - 3.8K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/collect/MapsTest.java

        }
      }
    
      /** Same test as above but for newLinkedHashMapWithExpectedSize */
      @J2ktIncompatible
      @GwtIncompatible // reflection
      @AndroidIncompatible // relies on assumptions about OpenJDK
      public void testNewLinkedHashMapWithExpectedSize_wontGrow() throws Exception {
        assertThat(bucketsOf(Maps.newLinkedHashMapWithExpectedSize(0))).isAtMost(1);
    
        for (int size = 1; size < 200; size++) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 22:56:33 GMT 2025
    - 62.7K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/collect/MapsTest.java

        }
      }
    
      /** Same test as above but for newLinkedHashMapWithExpectedSize */
      @J2ktIncompatible
      @GwtIncompatible // reflection
      @AndroidIncompatible // relies on assumptions about OpenJDK
      public void testNewLinkedHashMapWithExpectedSize_wontGrow() throws Exception {
        assertThat(bucketsOf(Maps.newLinkedHashMapWithExpectedSize(0))).isAtMost(1);
    
        for (int size = 1; size < 200; size++) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 22:56:33 GMT 2025
    - 65K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/collect/MultimapBuilder.java

        return new MultimapBuilderWithKeys<@Nullable Object>() {
          @Override
          <K extends @Nullable Object, V extends @Nullable Object> Map<K, Collection<V>> createMap() {
            return Platform.newLinkedHashMapWithExpectedSize(expectedKeys);
          }
        };
      }
    
      /**
       * Uses a naturally-ordered {@link TreeMap} to map keys to value collections.
       *
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 18K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/collect/Maps.java

       * @since 19.0
       */
      @SuppressWarnings("NonApiType") // acts as a direct substitute for a constructor call
      public static <K extends @Nullable Object, V extends @Nullable Object>
          LinkedHashMap<K, V> newLinkedHashMapWithExpectedSize(int expectedSize) {
        return new LinkedHashMap<>(capacity(expectedSize));
      }
    
      /**
       * Creates a new empty {@link ConcurrentHashMap} instance.
       *
       * @since 3.0
       */
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 157.6K bytes
    - Click Count (0)
  6. guava/src/com/google/common/collect/Maps.java

       * @since 19.0
       */
      @SuppressWarnings("NonApiType") // acts as a direct substitute for a constructor call
      public static <K extends @Nullable Object, V extends @Nullable Object>
          LinkedHashMap<K, V> newLinkedHashMapWithExpectedSize(int expectedSize) {
        return new LinkedHashMap<>(capacity(expectedSize));
      }
    
      /**
       * Creates a new empty {@link ConcurrentHashMap} instance.
       *
       * @since 3.0
       */
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Nov 17 22:50:48 GMT 2025
    - 163.5K bytes
    - Click Count (0)
Back to Top