- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for createWithExpectedSize (0.07 sec)
-
android/guava-tests/test/com/google/common/collect/CompactLinkedHashMapTest.java
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(); assertThat(map.entries).hasLength(4); assertThat(map.keys).hasLength(4);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 18:44:53 UTC 2025 - 6.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/CompactLinkedHashMapTest.java
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(); assertThat(map.entries).hasLength(4); assertThat(map.keys).hasLength(4);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 18:44:53 UTC 2025 - 7.8K bytes - Viewed (0)