Package net.sf.cglib.core.internal
Class LoadingCache<K,KK,V>
- java.lang.Object
-
- net.sf.cglib.core.internal.LoadingCache<K,KK,V>
-
public class LoadingCache<K,KK,V> extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected V
createEntry(K key, KK cacheKey, java.lang.Object v)
Loads entry to the cache.V
get(K key)
static <K> Function<K,K>
identity()
-
-
-
Method Detail
-
identity
public static <K> Function<K,K> identity()
-
createEntry
protected V createEntry(K key, KK cacheKey, java.lang.Object v)
Loads entry to the cache. If entry is missing, putFutureTask
first so other competing thread might wait for the result.- Parameters:
key
- original key that would be used to load the instancecacheKey
- key that would be used to store the entry in internal mapv
- null orFutureTask
- Returns:
- newly created instance
-
-