Package com.google.common.cache
Class ForwardingCache.SimpleForwardingCache<K,V>
- java.lang.Object
- 
- com.google.common.collect.ForwardingObject
- 
- com.google.common.cache.ForwardingCache<K,V>
- 
- com.google.common.cache.ForwardingCache.SimpleForwardingCache<K,V>
 
 
 
- 
- All Implemented Interfaces:
- Cache<K,V>
 - Enclosing class:
- ForwardingCache<K,V>
 
 public abstract static class ForwardingCache.SimpleForwardingCache<K,V> extends ForwardingCache<K,V> A simplified version ofForwardingCachewhere subclasses can pass in an already constructedCacheas the delegate.- Since:
- 10.0
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com.google.common.cache.ForwardingCacheForwardingCache.SimpleForwardingCache<K,V>
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedSimpleForwardingCache(Cache<K,V> delegate)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Cache<K,V>delegate()Returns the backing delegate instance that methods are forwarded to.- 
Methods inherited from class com.google.common.cache.ForwardingCacheasMap, cleanUp, get, getAllPresent, getIfPresent, invalidate, invalidateAll, invalidateAll, put, putAll, size, stats
 - 
Methods inherited from class com.google.common.collect.ForwardingObjecttoString
 
- 
 
- 
- 
- 
Constructor Detail- 
SimpleForwardingCacheprotected SimpleForwardingCache(Cache<K,V> delegate) 
 
- 
 - 
Method Detail- 
delegateprotected final Cache<K,V> delegate() Description copied from class:ForwardingObjectReturns the backing delegate instance that methods are forwarded to. Abstract subclasses generally override this method with an abstract method that has a more specific return type, such asForwardingSet.delegate(). Concrete subclasses override this method to supply the instance being decorated.- Specified by:
- delegatein class- ForwardingCache<K,V>
 
 
- 
 
-