Package net.didion.jwnl.util.cache
Class CacheSet
java.lang.Object
net.didion.jwnl.util.cache.CacheSet
- Direct Known Subclasses:
AbstractCachingDictionary.DictionaryCacheSet
,LRUCacheSet
A set of Caches, indexed by
CacheKey
.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
cacheObject
(Object cacheKey, Object key, Object value) void
clearCache
(Object key) protected abstract Cache
createCache
(int size) protected Cache
int
getCacheCapacity
(Object cacheKey) getCachedObject
(Object cacheKey, Object key) int
getCacheSize
(Object cacheKey) int
getSize()
int
setCacheCapacity
(Object cacheKey, int capacity)
-
Field Details
-
DEFAULT_CACHE_CAPACITY
public static final int DEFAULT_CACHE_CAPACITY- See Also:
-
_caches
-
-
Constructor Details
-
CacheSet
-
CacheSet
-
CacheSet
-
-
Method Details
-
createCache
-
addCache
-
addCache
-
cacheObject
-
getCachedObject
-
clearCache
-
getCacheSize
-
getCacheCapacity
-
setCacheCapacity
-
getSize
public int getSize() -
getCache
-