- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 18 for trimToSize (0.07 seconds)
-
android/guava/src/com/google/common/collect/ArrayListMultimap.java
* ImmutableListMultimap}. If you need a mutable collection, remove the {@code trimToSize} * call, or switch to a {@code HashMap<K, ArrayList<V>>}. */ @Deprecated public void trimToSize() { for (Collection<V> collection : backingMap().values()) { ArrayList<V> arrayList = (ArrayList<V>) collection; arrayList.trimToSize(); } } /**Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 05 23:15:58 GMT 2025 - 6.8K bytes - Click Count (0) -
guava/src/com/google/common/collect/ArrayListMultimap.java
* ImmutableListMultimap}. If you need a mutable collection, remove the {@code trimToSize} * call, or switch to a {@code HashMap<K, ArrayList<V>>}. */ @Deprecated public void trimToSize() { for (Collection<V> collection : backingMap().values()) { ArrayList<V> arrayList = (ArrayList<V>) collection; arrayList.trimToSize(); } } /**Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 05 23:15:58 GMT 2025 - 6.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/CompactHashSetTest.java
for (int i = 0; i < 100; i++) { set.remove("extra" + i); } set.trimToSize(); return set; } }) .named("CompactHashSet#TrimToSize") .withFeatures(allFeatures) .createTestSuite()); return suite; } public void testAllocArraysDefault() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Jan 25 16:19:30 GMT 2025 - 4.7K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/DiskLruCache.kt
entry.currentEditor?.detach() // Prevent the edit from completing normally. } } trimToSize() journalWriter?.closeQuietly() journalWriter = null closed = true } @Throws(IOException::class) fun trimToSize() { while (size > maxSize) { if (!removeOldestEntry()) return } mostRecentTrimFailed = false }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 34.7K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/CompactHashSet.java
} /** * Ensures that this {@code CompactHashSet} has the smallest representation in memory, given its * current size. */ public void trimToSize() { if (needsAllocArrays()) { return; } Set<E> delegate = delegateOrNull(); if (delegate != null) { Set<E> newDelegate = createHashFloodingResistantDelegate(size());Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Jul 08 18:32:10 GMT 2025 - 23.9K bytes - Click Count (0) -
guava/src/com/google/common/collect/CompactHashSet.java
} /** * Ensures that this {@code CompactHashSet} has the smallest representation in memory, given its * current size. */ public void trimToSize() { if (needsAllocArrays()) { return; } Set<E> delegate = delegateOrNull(); if (delegate != null) { Set<E> newDelegate = createHashFloodingResistantDelegate(size());Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Jul 08 18:32:10 GMT 2025 - 24.7K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/cache/DiskLruCacheTest.kt
filesystem.deleteRecursively(cacheDir) assertThat(cache["a"]).isNull() } /** * We had a long-lived bug where [DiskLruCache.trimToSize] could infinite loop if entries * being edited required deletion for the operation to complete. */ @Test fun trimToSizeWithActiveEdit() { val expectedByteCount = if (windows) 10L else 0LCreated: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Feb 03 22:17:59 GMT 2026 - 59.4K bytes - Click Count (0) -
guava/src/com/google/common/collect/CompactHashMap.java
} }; } /** * Ensures that this {@code CompactHashMap} has the smallest representation in memory, given its * current size. */ public void trimToSize() { if (needsAllocArrays()) { return; } Map<K, V> delegate = delegateOrNull(); if (delegate != null) { Map<K, V> newDelegate = createHashFloodingResistantDelegate(size());Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Jul 08 18:32:10 GMT 2025 - 39.6K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/CompactHashMap.java
return value(entry); } }; } /** * Ensures that this {@code CompactHashMap} has the smallest representation in memory, given its * current size. */ public void trimToSize() { if (needsAllocArrays()) { return; } Map<K, V> delegate = delegateOrNull(); if (delegate != null) { Map<K, V> newDelegate = createHashFloodingResistantDelegate(size());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 35.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/CompactHashMapTest.java
} 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(); assertThat(map.entries).hasLength(10); assertThat(map.keys).hasLength(10); assertThat(map.values).hasLength(10); assertEquals(10, map.size()); for (int i = 0; i < 10; i++) {
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)