Class DelegatingNullSafeCache<K,V>
- java.lang.Object
 - 
- com.google.common.collect.ForwardingObject
 - 
- org.opendaylight.infrautils.caches.baseimpl.DelegatingNullSafeBaseCache<K,V>
 - 
- org.opendaylight.infrautils.caches.baseimpl.DelegatingNullSafeCache<K,V>
 
 
 
 
- 
- All Implemented Interfaces:
 AutoCloseable,BaseCache<K,V>,Cache<K,V>
public final class DelegatingNullSafeCache<K,V> extends DelegatingNullSafeBaseCache<K,V> implements Cache<K,V>
Cache with null handling, useful for API implementors (not users).- Author:
 - Michael Vorburger.ch
 
 
- 
- 
Constructor Summary
Constructors Constructor Description DelegatingNullSafeCache(Cache<K,V> delegate) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Cache<K,V>delegate()com.google.common.collect.ImmutableMap<K,V>get(Iterable<? extends K> keys)Get several cache entries, in one go.Vget(K key)Get cache entry.- 
Methods inherited from class org.opendaylight.infrautils.caches.baseimpl.DelegatingNullSafeBaseCache
asMap, checkNonNullKeys, checkReturnValue, checkReturnValue, close, evict, getManager, put 
- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait 
- 
Methods inherited from interface java.lang.AutoCloseable
close 
- 
Methods inherited from interface org.opendaylight.infrautils.caches.BaseCache
asMap, evict, getManager, put 
 - 
 
 - 
 
- 
- 
Method Detail
- 
delegate
protected Cache<K,V> delegate()
- Specified by:
 delegatein classDelegatingNullSafeBaseCache<K,V>
 
- 
get
public V get(K key)
Description copied from interface:CacheGet cache entry. If the cache does not currently contain an entry under this key, then one is created, using theCacheFunctiongiven when the cache was created. 
 - 
 
 -