com.atlassian.cache.impl
Class CacheLoaderSupplier<K,V>
java.lang.Object
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
|
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 |
CacheLoaderSupplier
public CacheLoaderSupplier(K key,
CacheLoader<? super K,? extends V> loader)
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.