Class DelegatingNullSafeCheckedCache<K,V,E extends Exception>
- java.lang.Object
-
- com.google.common.collect.ForwardingObject
-
- org.opendaylight.infrautils.caches.baseimpl.DelegatingNullSafeBaseCache<K,V>
-
- org.opendaylight.infrautils.caches.baseimpl.DelegatingNullSafeCheckedCache<K,V,E>
-
- All Implemented Interfaces:
AutoCloseable
,BaseCache<K,V>
,CheckedCache<K,V,E>
public final class DelegatingNullSafeCheckedCache<K,V,E extends Exception> extends DelegatingNullSafeBaseCache<K,V> implements CheckedCache<K,V,E>
Cache with null handling, useful for API implementors (not users).- Author:
- Michael Vorburger.ch
-
-
Constructor Summary
Constructors Constructor Description DelegatingNullSafeCheckedCache(CheckedCache<K,V,E> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CheckedCache<K,V,E>
delegate()
com.google.common.collect.ImmutableMap<K,V>
get(Iterable<? extends K> keys)
V
get(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
-
Methods inherited from interface org.opendaylight.infrautils.caches.CheckedCache
get
-
-
-
-
Constructor Detail
-
DelegatingNullSafeCheckedCache
public DelegatingNullSafeCheckedCache(CheckedCache<K,V,E> delegate)
-
-
Method Detail
-
delegate
protected CheckedCache<K,V,E> delegate()
- Specified by:
delegate
in classDelegatingNullSafeBaseCache<K,V>
-
get
public V get(K key) throws E extends Exception
Description copied from interface:CheckedCache
Get cache entry. SeeCache.get(Object)
for more documentation.
-
-