Package net.didion.jwnl.dictionary
Class AbstractCachingDictionary.ObservableCache
java.lang.Object
java.util.AbstractMap
java.util.HashMap
java.util.LinkedHashMap
net.didion.jwnl.util.cache.LRUCache
net.didion.jwnl.dictionary.AbstractCachingDictionary.ObservableCache
- All Implemented Interfaces:
Serializable
,Cloneable
,Map
,Cache
- Enclosing class:
AbstractCachingDictionary
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,
V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addObserver
(Observer obs) 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
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, replace, replace, size
-
Field Details
-
_observable
-
-
Constructor Details
-
ObservableCache
public ObservableCache(int capacity)
-
-
Method Details