Package opennlp.tools.util
Class Cache<K,V>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap<K,V>
-
- opennlp.tools.util.Cache<K,V>
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.util.Map<K,V>
public class Cache<K,V> extends java.util.LinkedHashMap<K,V>
Provides fixed size, pre-allocated, least recently used replacement cache.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Cache(int capacity)
-
Method Summary
-
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, replaceAll, values
-
-