org.openjena.atlas.lib.cache
Class CacheWithGetter<K,V>
java.lang.Object
org.openjena.atlas.lib.cache.CacheWrapper<K,V>
org.openjena.atlas.lib.cache.CacheWithGetter<K,V>
- All Implemented Interfaces:
- Cache<K,V>
public class CacheWithGetter<K,V>
- extends CacheWrapper<K,V>
Cache that takes a Getter
to automatically fill cache misses.
Method Summary |
V |
get(K key)
Get from cache - or return null. |
CacheWithGetter
public CacheWithGetter(Cache<K,V> cache,
Getter<K,V> getter)
get
public V get(K key)
- Description copied from interface:
Cache
- Get from cache - or return null.
Implementations should state whether
they are thread-safe or not.
- Specified by:
get
in interface Cache<K,V>
- Overrides:
get
in class CacheWrapper<K,V>
Licenced under the Apache License, Version 2.0