コード例 #1
0
 public void cacheObject(DictionaryElementType fileType, Object key, Object value) {
   if (value instanceof IndexWord) {
     IndexWord word = (IndexWord) value;
     getMap(DictionaryElementType.INDEX_WORD)
         .put(new POSKey(word.getPOS(), word.getLemma()), key);
   } else if (value instanceof Exc) {
     Exc exc = (Exc) value;
     getMap(DictionaryElementType.EXCEPTION).put(new POSKey(exc.getPOS(), exc.getLemma()), key);
   }
   super.cacheObject(fileType, key, value);
 }
コード例 #2
0
 public void clearCache(DictionaryElementType fileType) {
   Map m = getMap(fileType);
   if (m != null) m.clear();
   super.clearCache(fileType);
 }