- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for WeakReference (0.07 sec)
-
android/guava/src/com/google/common/cache/CacheBuilder.java
* divided into segments, each of which does LRU internally) * <li>time-based expiration of entries, measured since last access or last write * <li>keys automatically wrapped in {@code WeakReference} * <li>values automatically wrapped in {@code WeakReference} or {@code SoftReference} * <li>notification of evicted (or otherwise removed) entries * <li>accumulation of cache access statistics * </ul> *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 52K bytes - Viewed (0) -
guava/src/com/google/common/cache/CacheBuilder.java
* divided into segments, each of which does LRU internally) * <li>time-based expiration of entries, measured since last access or last write * <li>keys automatically wrapped in {@code WeakReference} * <li>values automatically wrapped in {@code WeakReference} or {@code SoftReference} * <li>notification of evicted (or otherwise removed) entries * <li>accumulation of cache access statistics * </ul> *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 51.6K bytes - Viewed (0) -
guava/src/com/google/common/collect/MapMakerInternalMap.java
clearReferenceQueue(queueForKeys); } } static final class CleanupMapTask implements Runnable { final WeakReference<MapMakerInternalMap<?, ?, ?, ?>> mapReference; public CleanupMapTask(MapMakerInternalMap<?, ?, ?, ?> map) { this.mapReference = new WeakReference<>(map); } @Override public void run() { MapMakerInternalMap<?, ?, ?, ?> map = mapReference.get();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 20:24:49 UTC 2024 - 90.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java
int iterations = 10; WeakReference<Object> ref = new WeakReference<>(null); int expectedComputations = 0; for (int i = 0; i < iterations; i++) { // The entry should get garbage collected and recomputed. Object oldValue = ref.get(); if (oldValue == null) { expectedComputations++; } ref = new WeakReference<>(cache.getUnchecked(1)); oldValue = null;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 86.3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/MapMakerInternalMap.java
clearReferenceQueue(queueForKeys); } } static final class CleanupMapTask implements Runnable { final WeakReference<MapMakerInternalMap<?, ?, ?, ?>> mapReference; public CleanupMapTask(MapMakerInternalMap<?, ?, ?, ?> map) { this.mapReference = new WeakReference<>(map); } @Override public void run() { MapMakerInternalMap<?, ?, ?, ?> map = mapReference.get();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 20:24:49 UTC 2024 - 90.8K bytes - Viewed (0)