Package net.didion.jwnl.dictionary
Class AbstractCachingDictionary.ObservableCache
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap
-
- net.didion.jwnl.util.cache.LRUCache
-
- net.didion.jwnl.dictionary.AbstractCachingDictionary.ObservableCache
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.util.Map
,Cache
- Enclosing class:
- AbstractCachingDictionary
private static final class AbstractCachingDictionary.ObservableCache extends LRUCache
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Observable
_observable
-
Constructor Summary
Constructors Constructor Description ObservableCache(int capacity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addObserver(java.util.Observer obs)
java.lang.Object
remove(java.lang.Object key)
Remotes the object associated with key and returns that object.-
Methods inherited from class net.didion.jwnl.util.cache.LRUCache
getCapacity, getSize, isFull, removeEldestEntry, setCapacity
-
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, replaceAll, values
-
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, replace, replace, size
-
-