- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 25 for LoadingCache (0.35 sec)
-
android/guava/src/com/google/common/cache/LoadingCache.java
* @param <V> the type of the cache's values, which are not permitted to be null * @author Charles Fry * @since 11.0 */ @GwtCompatible @ElementTypesAreNonnullByDefault public interface LoadingCache<K, V> extends Cache<K, V>, Function<K, V> { /** * Returns the value associated with {@code key} in this cache, first loading that value if
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Sat Aug 06 17:12:03 GMT 2022 - 8.3K bytes - Viewed (0) -
guava/src/com/google/common/cache/LoadingCache.java
* @param <V> the type of the cache's values, which are not permitted to be null * @author Charles Fry * @since 11.0 */ @GwtCompatible @ElementTypesAreNonnullByDefault public interface LoadingCache<K, V> extends Cache<K, V>, Function<K, V> { /** * Returns the value associated with {@code key} in this cache, first loading that value if
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Sat Aug 06 17:12:03 GMT 2022 - 8.3K bytes - Viewed (0) -
android/guava/src/com/google/common/cache/ForwardingLoadingCache.java
* constructed {@link LoadingCache} as the delegate. * * @since 10.0 */ public abstract static class SimpleForwardingLoadingCache<K, V> extends ForwardingLoadingCache<K, V> { private final LoadingCache<K, V> delegate; protected SimpleForwardingLoadingCache(LoadingCache<K, V> delegate) { this.delegate = Preconditions.checkNotNull(delegate); }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Sat Aug 06 17:12:03 GMT 2022 - 2.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/ForwardingLoadingCacheTest.java
import junit.framework.TestCase; /** * Unit test for {@link ForwardingLoadingCache}. * * @author Charles Fry */ public class ForwardingLoadingCacheTest extends TestCase { private LoadingCache<String, Boolean> forward; private LoadingCache<String, Boolean> mock; @SuppressWarnings({"unchecked", "DoNotMock"}) // mock @Override public void setUp() throws Exception { super.setUp(); /*
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Apr 17 12:41:04 GMT 2023 - 3.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/AbstractLoadingCacheTest.java
public class AbstractLoadingCacheTest extends TestCase { public void testGetUnchecked_checked() { final Exception cause = new Exception(); final AtomicReference<Object> valueRef = new AtomicReference<>(); LoadingCache<Object, Object> cache = new AbstractLoadingCache<Object, Object>() { @Override public Object get(Object key) throws ExecutionException { Object v = valueRef.get();
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 5K bytes - Viewed (0) -
guava/src/com/google/common/cache/CacheLoader.java
* * <p>This method should be overridden when bulk retrieval is significantly more efficient than * many individual lookups. Note that {@link LoadingCache#getAll} will defer to individual calls * to {@link LoadingCache#get} if this method is not overridden. * * @param keys the unique, non-null keys whose values should be loaded
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Dec 19 20:20:14 GMT 2022 - 9.5K bytes - Viewed (0) -
android/guava/src/com/google/common/cache/Cache.java
* create, cache and return" pattern. For further improvements, use {@link LoadingCache} and its * {@link LoadingCache#get(Object) get(K)} method instead of this one. * * <p>Among the improvements that this method and {@code LoadingCache.get(K)} both provide are: * * <ul> * <li>{@linkplain LoadingCache#get(Object) awaiting the result of a pending load} rather than * starting a redundant one
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Sun Aug 07 02:38:22 GMT 2022 - 8.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/CacheReferencesTest.java
} private Iterable<LoadingCache<Key, String>> caches() { CacheBuilderFactory factory = factoryWithAllKeyStrengths(); return Iterables.transform( factory.buildAllPermutations(), new Function<CacheBuilder<Object, Object>, LoadingCache<Key, String>>() { @Override public LoadingCache<Key, String> apply(CacheBuilder<Object, Object> builder) {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 6.1K bytes - Viewed (0) -
guava/src/com/google/common/cache/ForwardingLoadingCache.java
* constructed {@link LoadingCache} as the delegate. * * @since 10.0 */ public abstract static class SimpleForwardingLoadingCache<K, V> extends ForwardingLoadingCache<K, V> { private final LoadingCache<K, V> delegate; protected SimpleForwardingLoadingCache(LoadingCache<K, V> delegate) { this.delegate = Preconditions.checkNotNull(delegate); }
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Sat Aug 06 17:12:03 GMT 2022 - 2.9K bytes - Viewed (1) -
guava-tests/test/com/google/common/cache/NullCacheTest.java
import com.google.common.cache.TestingRemovalListeners.QueuingRemovalListener; import com.google.common.util.concurrent.UncheckedExecutionException; import junit.framework.TestCase; /** * {@link LoadingCache} tests for caches with a maximum size of zero. * * @author mike nonemacher */ public class NullCacheTest extends TestCase { QueuingRemovalListener<Object, Object> listener; @Override
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 4.4K bytes - Viewed (0)