com.atlassian.cache.impl
Class CacheLoaderSupplier<K,V>

java.lang.Object
  extended by com.atlassian.cache.impl.CacheLoaderSupplier<K,V>
All Implemented Interfaces:
Supplier<V>

public class CacheLoaderSupplier<K,V>
extends Object
implements Supplier<V>

Since:
2.5

Constructor Summary
CacheLoaderSupplier(K key, CacheLoader<? super K,? extends V> loader)
           
 
Method Summary
 V get()
          Produce an object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheLoaderSupplier

public CacheLoaderSupplier(K key,
                           CacheLoader<? super K,? extends V> loader)
Method Detail

get

public V get()
Description copied from interface: Supplier
Produce an object. Retrieve an instance of the appropriate type. The returned object may or may not be a new instance, depending on the implementation.

Specified by:
get in interface Supplier<V>
Returns:
the product, may be null if there are no objects available.


Copyright © 2015 Atlassian. All rights reserved.