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
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ConcurrentHashMap
<K, LocaleObjectCache.CacheEntry<K, V>> private ReferenceQueue
<V> -
Constructor Summary
ConstructorsConstructorDescriptionLocaleObjectCache
(int initialCapacity, float loadFactor, int concurrencyLevel) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
protected abstract V
createObject
(K key) protected K
normalizeKey
(K key)
-
Field Details
-
_map
-
_queue
-
-
Constructor Details
-
LocaleObjectCache
public LocaleObjectCache() -
LocaleObjectCache
public LocaleObjectCache(int initialCapacity, float loadFactor, int concurrencyLevel)
-
-
Method Details
-
get
-
cleanStaleEntries
private void cleanStaleEntries() -
createObject
-
normalizeKey
-