Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for testTrimToSize (0.07 seconds)

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

                    CollectionFeature.SUPPORTS_ITERATOR_REMOVE)
                .createTestSuite());
        suite.addTestSuite(CompactHashMapTest.class);
        return suite;
      }
    
      public void testTrimToSize() {
        CompactHashMap<Integer, String> map = CompactHashMap.createWithExpectedSize(100);
        for (int i = 0; i < 10; i++) {
          map.put(i, Integer.toString(i));
        }
        map.trimToSize();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 5.4K bytes
    - Click Count (0)
Back to Top