Package org.jpmml.evaluator
Class SimpleLoadingCache<K,V>
- java.lang.Object
-
- com.google.common.cache.AbstractCache<K,V>
-
- com.google.common.cache.AbstractLoadingCache<K,V>
-
- org.jpmml.evaluator.SimpleLoadingCache<K,V>
-
- All Implemented Interfaces:
com.google.common.base.Function<K,V>,com.google.common.cache.Cache<K,V>,com.google.common.cache.LoadingCache<K,V>,Function<K,V>
public class SimpleLoadingCache<K,V> extends com.google.common.cache.AbstractLoadingCache<K,V>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Vget(Object key)Vget(K key, Callable<? extends V> callable)VgetIfPresent(Object key)voidinvalidate(Object key)static <K,V>
SimpleLoadingCache<K,V>newInstance(com.google.common.cache.CacheLoader<K,V> cacheLoader)voidput(K key, V value)-
Methods inherited from class com.google.common.cache.AbstractLoadingCache
apply, getAll, getUnchecked, refresh
-
Methods inherited from class com.google.common.cache.AbstractCache
asMap, cleanUp, getAllPresent, invalidateAll, invalidateAll, putAll, size, stats
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
get
public V get(Object key) throws ExecutionException
- Throws:
ExecutionException
-
get
public V get(K key, Callable<? extends V> callable) throws ExecutionException
- Specified by:
getin interfacecom.google.common.cache.Cache<K,V>- Overrides:
getin classcom.google.common.cache.AbstractCache<K,V>- Throws:
ExecutionException
-
invalidate
public void invalidate(Object key)
-
newInstance
public static <K,V> SimpleLoadingCache<K,V> newInstance(com.google.common.cache.CacheLoader<K,V> cacheLoader)
-
-