Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for newLinkedHashMapWithExpectedSize (0.1 sec)

  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
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Dec 05 23:15:58 UTC 2025
    - 3.8K bytes
    - Viewed (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++) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 22:56:33 UTC 2025
    - 62.7K bytes
    - Viewed (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++) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 22:56:33 UTC 2025
    - 65K bytes
    - Viewed (0)
Back to top