- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for errorLoader (0.1 sec)
-
android/guava-tests/test/com/google/common/cache/TestingCacheLoaders.java
static IncrementingLoader incrementingLoader() { return new IncrementingLoader(); } /** Returns a {@link CacheLoader} that throws the given error for every request. */ static <K, V> CacheLoader<K, V> errorLoader(final Error e) { checkNotNull(e); return new CacheLoader<K, V>() { @Override public V load(K key) { throw e; } }; }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 4.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java
import static com.google.common.cache.TestingCacheLoaders.bulkLoader; import static com.google.common.cache.TestingCacheLoaders.constantLoader; import static com.google.common.cache.TestingCacheLoaders.errorLoader; import static com.google.common.cache.TestingCacheLoaders.exceptionLoader; import static com.google.common.cache.TestingCacheLoaders.identityLoader;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 86.3K bytes - Viewed (0)