Package com.ibm.icu.impl.locale
Class LocaleObjectCache<K,V>
- java.lang.Object
-
- com.ibm.icu.impl.locale.LocaleObjectCache<K,V>
-
- Direct Known Subclasses:
BaseLocale.Cache
public abstract class LocaleObjectCache<K,V> extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
LocaleObjectCache.CacheEntry<K,V>
-
Constructor Summary
Constructors Constructor Description LocaleObjectCache()
LocaleObjectCache(int initialCapacity, float loadFactor, int concurrencyLevel)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description private void
cleanStaleEntries()
protected abstract V
createObject(K key)
V
get(K key)
protected K
normalizeKey(K key)
-
-
-
Field Detail
-
_map
private java.util.concurrent.ConcurrentHashMap<K,LocaleObjectCache.CacheEntry<K,V>> _map
-
_queue
private java.lang.ref.ReferenceQueue<V> _queue
-
-