Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for testTrimToSize (0.16 sec)

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

        ArrayListMultimap<String, Integer> multimap = ArrayListMultimap.create(original);
        assertEquals(20, multimap.expectedValuesPerKey);
      }
    
      public void testTrimToSize() {
        ArrayListMultimap<String, Integer> multimap = ArrayListMultimap.create();
        multimap.put("foo", 1);
        multimap.put("foo", 2);
        multimap.put("bar", 3);
        multimap.trimToSize();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/CompactLinkedHashMapTest.java

        map.put(1, "a");
        map.put(4, "b");
        map.put(3, "d");
        map.put(2, "c");
        map.remove(2);
        testHasMapEntriesInOrder(map, 1, "a", 4, "b", 3, "d");
      }
    
      public void testTrimToSize() {
        CompactLinkedHashMap<Integer, String> map = CompactLinkedHashMap.createWithExpectedSize(100);
        map.put(1, "a");
        map.put(4, "b");
        map.put(3, "d");
        map.put(2, "c");
        map.trimToSize();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  3. 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();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/ArrayListMultimapTest.java

        ArrayListMultimap<String, Integer> multimap = ArrayListMultimap.create(original);
        assertEquals(20, multimap.expectedValuesPerKey);
      }
    
      public void testTrimToSize() {
        ArrayListMultimap<String, Integer> multimap = ArrayListMultimap.create();
        multimap.put("foo", 1);
        multimap.put("foo", 2);
        multimap.put("bar", 3);
        multimap.trimToSize();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/CompactLinkedHashMapTest.java

        map.put(1, "a");
        map.put(4, "b");
        map.put(3, "d");
        map.put(2, "c");
        map.remove(2);
        testHasMapEntriesInOrder(map, 1, "a", 4, "b", 3, "d");
      }
    
      public void testTrimToSize() {
        CompactLinkedHashMap<Integer, String> map = CompactLinkedHashMap.createWithExpectedSize(100);
        map.put(1, "a");
        map.put(4, "b");
        map.put(3, "d");
        map.put(2, "c");
        map.trimToSize();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 7.7K bytes
    - Viewed (0)
Back to top