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 AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddObserver(Observer obs) Remotes the object associated with key and returns that object.Methods inherited from class LRUCache
getCapacity, getSize, isFull, removeEldestEntry, setCapacityMethods inherited from class LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, replaceAll, valuesMethods inherited from class HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, replace, replace, sizeMethods inherited from class AbstractMap
equals, hashCode, toStringMethods inherited from interface 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
-
addObserver
-
remove
-