- Sort Score
- Result 10 results
- Languages All
Results 11 - 17 of 17 for weakValues (0.06 sec)
-
android/guava/src/com/google/common/cache/RemovalCause.java
return false; } }, /** * The entry was removed automatically because its key or value was garbage-collected. This can * occur when using {@link CacheBuilder#weakKeys}, {@link CacheBuilder#weakValues}, or {@link * CacheBuilder#softValues}. */ COLLECTED { @Override boolean wasEvicted() { return true; } }, /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jun 15 18:00:07 UTC 2021 - 2.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/BenchmarkHelpers.java
} }, MapMakerStrongKeysWeakValues { @Override public <K extends Comparable<K>, V> Map<K, V> create(Map<K, V> map) { ConcurrentMap<K, V> newMap = new MapMaker().weakValues().makeMap(); checkState(newMap instanceof MapMakerInternalMap); newMap.putAll(map); return newMap; } }, MapMakerWeakKeysStrongValues { @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 12.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/BenchmarkHelpers.java
} }, MapMakerStrongKeysWeakValues { @Override public <K extends Comparable<K>, V> Map<K, V> create(Map<K, V> map) { ConcurrentMap<K, V> newMap = new MapMaker().weakValues().makeMap(); checkState(newMap instanceof MapMakerInternalMap); newMap.putAll(map); return newMap; } }, MapMakerWeakKeysStrongValues { @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 12.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/LocalCacheTest.java
.createTestSuite()); suite.addTest( ConcurrentMapTestSuiteBuilder.using( new TestStringCacheGenerator(createCacheBuilder().weakValues())) .named("LocalCache with weakValues") // values are string literals and won't be GC'd .withFeatures( CollectionSize.ANY, MapFeature.GENERAL_PURPOSE,
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 110.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/LocalCacheTest.java
.createTestSuite()); suite.addTest( ConcurrentMapTestSuiteBuilder.using( new TestStringCacheGenerator(createCacheBuilder().weakValues())) .named("LocalCache with weakValues") // values are string literals and won't be GC'd .withFeatures( CollectionSize.ANY, MapFeature.GENERAL_PURPOSE,
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 112.3K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/Striped.java
LargeLazyStriped(int stripes, Supplier<L> supplier) { super(stripes); this.size = (mask == ALL_SET) ? Integer.MAX_VALUE : mask + 1; this.supplier = supplier; this.locks = new MapMaker().weakValues().makeMap(); } @Override public L getAt(int index) { if (size != Integer.MAX_VALUE) { Preconditions.checkElementIndex(index, size());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jun 26 12:58:35 UTC 2024 - 20.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java
CountingLoader countingLoader = new CountingLoader(); LoadingCache<Object, Object> cache = CacheBuilder.newBuilder().weakValues().build(countingLoader); ConcurrentMap<Object, Object> map = cache.asMap(); int iterations = 10; WeakReference<Object> ref = new WeakReference<>(null); int expectedComputations = 0;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 86.3K bytes - Viewed (0)