public class KeyTransformingLoadingCache<A,B,V>
extends com.google.common.cache.AbstractLoadingCache<A,V>
LoadingCache.| Modifier and Type | Class and Description | 
|---|---|
| static class  | KeyTransformingLoadingCache.KeyTransformingSameTypeLoadingCache<A,V> | 
| Constructor and Description | 
|---|
| KeyTransformingLoadingCache(com.google.common.cache.LoadingCache<B,V> delegate,
                           com.google.common.base.Function<A,B> keyTransformer) | 
| Modifier and Type | Method and Description | 
|---|---|
| java.util.concurrent.ConcurrentMap<A,V> | asMap()Undefined because input values are not tracked. | 
| void | cleanUp() | 
| static <A,B,V> KeyTransformingLoadingCache<A,B,V> | from(com.google.common.cache.LoadingCache<B,V> delegate,
    com.google.common.base.Function<A,B> keyTransformer) | 
| V | get(A key) | 
| V | get(A key,
   java.util.concurrent.Callable<? extends V> valueLoader) | 
| com.google.common.collect.ImmutableMap<A,V> | getAllPresent(java.lang.Iterable<?> keys)Undefined because we can't prohibit a surjective  keyTransformer(). | 
| V | getIfPresent(java.lang.Object key) | 
| void | invalidate(java.lang.Object key) | 
| void | invalidateAll() | 
| void | put(A key,
   V value) | 
| void | refresh(A key) | 
| long | size() | 
| com.google.common.cache.CacheStats | stats() | 
apply, getAll, getUncheckedpublic static <A,B,V> KeyTransformingLoadingCache<A,B,V> from(com.google.common.cache.LoadingCache<B,V> delegate, com.google.common.base.Function<A,B> keyTransformer)
public V getIfPresent(java.lang.Object key)
public V get(A key, java.util.concurrent.Callable<? extends V> valueLoader) throws java.util.concurrent.ExecutionException
public com.google.common.collect.ImmutableMap<A,V> getAllPresent(java.lang.Iterable<?> keys)
keyTransformer().public void invalidate(java.lang.Object key)
public void invalidateAll()
public long size()
public com.google.common.cache.CacheStats stats()
public V get(A key) throws java.util.concurrent.ExecutionException
java.util.concurrent.ExecutionExceptionpublic void refresh(A key)
public java.util.concurrent.ConcurrentMap<A,V> asMap()