Class CacheLoader.SupplierToCacheLoader<V>

java.lang.Object
com.google.common.cache.CacheLoader<Object,V>
com.google.common.cache.CacheLoader.SupplierToCacheLoader<V>
All Implemented Interfaces:
Serializable
Enclosing class:
CacheLoader<K,V>

private static final class CacheLoader.SupplierToCacheLoader<V> extends CacheLoader<Object,V> implements Serializable
  • Field Details

    • computingSupplier

      private final Supplier<V> computingSupplier
    • serialVersionUID

      private static final long serialVersionUID
      See Also:
  • Constructor Details

    • SupplierToCacheLoader

      public SupplierToCacheLoader(Supplier<V> computingSupplier)
  • Method Details

    • load

      public V load(Object key)
      Description copied from class: CacheLoader
      Computes or retrieves the value corresponding to key.
      Specified by:
      load in class CacheLoader<Object,V>
      Parameters:
      key - the non-null key whose value should be loaded
      Returns:
      the value associated with key; must not be null