Package com.google.common.cache
Class CacheLoader.SupplierToCacheLoader<V>
- java.lang.Object
-
- com.google.common.cache.CacheLoader<java.lang.Object,V>
-
- com.google.common.cache.CacheLoader.SupplierToCacheLoader<V>
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- CacheLoader<K,V>
private static final class CacheLoader.SupplierToCacheLoader<V> extends CacheLoader<java.lang.Object,V> implements java.io.Serializable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.common.cache.CacheLoader
CacheLoader.InvalidCacheLoadException, CacheLoader.UnsupportedLoadingOperationException
-
-
Field Summary
Fields Modifier and Type Field Description private Supplier<V>computingSupplierprivate static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description SupplierToCacheLoader(Supplier<V> computingSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Vload(java.lang.Object key)Computes or retrieves the value corresponding tokey.-
Methods inherited from class com.google.common.cache.CacheLoader
asyncReloading, from, from, loadAll, reload
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
load
public V load(java.lang.Object key)
Description copied from class:CacheLoaderComputes or retrieves the value corresponding tokey.- Specified by:
loadin classCacheLoader<java.lang.Object,V>- Parameters:
key- the non-null key whose value should be loaded- Returns:
- the value associated with
key; must not be null
-
-