- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for weakValues (0.04 sec)
-
android/guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java
assertThrows(IllegalArgumentException.class, () -> parse("softValues, weakValues")); assertThrows(IllegalArgumentException.class, () -> parse("weakValues, softValues")); assertThrows(IllegalArgumentException.class, () -> parse("weakValues, weakValues")); } public void testParse_writeExpirationDays() { CacheBuilderSpec spec = parse("expireAfterWrite=10d");Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 30 22:03:28 UTC 2025 - 20.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java
return ImmutableList.of(createMapMaker().weakKeys(), createMapMaker().weakKeys().weakValues()); } private static Iterable<MapMaker> allWeakValueStrengthMakers() { return ImmutableList.of( createMapMaker().weakValues(), createMapMaker().weakKeys().weakValues()); } public void testNullParameters() throws Exception { NullPointerTester tester = new NullPointerTester();
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 20:07:52 UTC 2025 - 35.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java
return ImmutableList.of(createMapMaker().weakKeys(), createMapMaker().weakKeys().weakValues()); } private static Iterable<MapMaker> allWeakValueStrengthMakers() { return ImmutableList.of( createMapMaker().weakValues(), createMapMaker().weakKeys().weakValues()); } public void testNullParameters() throws Exception { NullPointerTester tester = new NullPointerTester();
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 20:07:52 UTC 2025 - 35.5K bytes - Viewed (0) -
android/guava/src/com/google/common/cache/CacheBuilder.java
* expireAfterWrite}, {@link #expireAfterAccess expireAfterAccess}, {@link #weakKeys weakKeys}, * {@link #weakValues weakValues}, or {@link #softValues softValues} are requested. * * <p>If {@link #maximumSize(long) maximumSize} or {@link #maximumWeight(long) maximumWeight} is * requested entries may be evicted on each cache modification. *Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Oct 08 18:55:33 UTC 2025 - 51.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java
assertThrows(IllegalStateException.class, () -> builder1.weakKeys()); } @GwtIncompatible // weakValues public void testValueStrengthSetTwice() { CacheBuilder<Object, Object> builder1 = CacheBuilder.newBuilder().weakValues(); assertThrows(IllegalStateException.class, () -> builder1.weakValues()); assertThrows(IllegalStateException.class, () -> builder1.softValues());
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 30 22:03:28 UTC 2025 - 25.4K bytes - Viewed (0) -
guava/src/com/google/common/cache/CacheBuilder.java
* expireAfterWrite}, {@link #expireAfterAccess expireAfterAccess}, {@link #weakKeys weakKeys}, * {@link #weakValues weakValues}, or {@link #softValues softValues} are requested. * * <p>If {@link #maximumSize(long) maximumSize} or {@link #maximumWeight(long) maximumWeight} is * requested entries may be evicted on each cache modification. *Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Oct 08 18:55:33 UTC 2025 - 51.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java
} else { return "0"; } } }; LoadingCache<Integer, String> recursiveCache = CacheBuilder.newBuilder().weakKeys().weakValues().build(recursiveLoader); cacheRef.set(recursiveCache); assertThat(recursiveCache.getUnchecked(3)).isEqualTo("3, 2, 1, 0"); recursiveLoader = new CacheLoader<Integer, String>() {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 13.3K 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 Dec 26 12:43:10 UTC 2025 - Last Modified: Fri Dec 12 00:25:21 UTC 2025 - 115.9K 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 Dec 26 12:43:10 UTC 2025 - Last Modified: Fri Dec 12 00:25:21 UTC 2025 - 117.5K bytes - Viewed (0) -
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 Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 30 22:03:28 UTC 2025 - 91.1K bytes - Viewed (0)