Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for newHashMapWithExpectedSize (0.1 seconds)

  1. android/guava-tests/test/com/google/common/collect/MapsTest.java

        // after  jdk7u40: creates empty table
        assertThat(bucketsOf(Maps.newHashMapWithExpectedSize(0))).isAtMost(1);
    
        for (int size = 1; size < 200; size++) {
          assertWontGrow(
              size,
              new HashMap<>(),
              Maps.newHashMapWithExpectedSize(size),
              Maps.newHashMapWithExpectedSize(size));
        }
      }
    
      /** Same test as above but for newLinkedHashMapWithExpectedSize */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 63.2K bytes
    - Click Count (0)
Back to Top