Package net.didion.jwnl.dictionary
Class AbstractCachingDictionary.DictionaryCacheSet
java.lang.Object
net.didion.jwnl.util.cache.CacheSet
net.didion.jwnl.dictionary.AbstractCachingDictionary.DictionaryCacheSet
- All Implemented Interfaces:
Observer
- Enclosing class:
AbstractCachingDictionary
-
Field Summary
FieldsFields inherited from class net.didion.jwnl.util.cache.CacheSet
DEFAULT_CACHE_CAPACITY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
cacheObject
(DictionaryElementType fileType, Object key, Object value) void
clearCache
(DictionaryElementType fileType) protected Cache
createCache
(int size) getCachedObject
(DictionaryElementType fileType, Object key) private Map
getMap
(DictionaryElementType fileType) private void
private void
removeLemma
(DictionaryElementType fileType, String lemma, POS pos) void
update
(Observable obs, Object obj) Methods inherited from class net.didion.jwnl.util.cache.CacheSet
addCache, addCache, cacheObject, clearCache, getCache, getCacheCapacity, getCachedObject, getCacheSize, getSize, setCacheCapacity
-
Field Details
-
_lemmaToOffsetMaps
-
-
Constructor Details
-
DictionaryCacheSet
public DictionaryCacheSet() -
DictionaryCacheSet
public DictionaryCacheSet(int[] sizes)
-
-
Method Details
-
getCachedObject
-
cacheObject
-
clearCache
-
update
-
initLemmaToOffsetMaps
private void initLemmaToOffsetMaps() -
removeLemma
-
getMap
-
createCache
- Specified by:
createCache
in classCacheSet
-