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 CacheSet
DEFAULT_CACHE_CAPACITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcacheObject(DictionaryElementType fileType, Object key, Object value) voidclearCache(DictionaryElementType fileType) protected CachecreateCache(int size) getCachedObject(DictionaryElementType fileType, Object key) private MapgetMap(DictionaryElementType fileType) private voidprivate voidremoveLemma(DictionaryElementType fileType, String lemma, POS pos) voidupdate(Observable obs, Object obj) Methods inherited from class 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:
createCachein classCacheSet
-