Top Inners Fields Constructors Methods
com.ibm.icu.impl.locale

public abstract Class LocaleObjectCache<K, V>

extends Object
Class Inheritance
Known Direct Subclasses
com.ibm.icu.impl.locale.BaseLocale.Cache
Imports
java.lang.ref.ReferenceQueue, .SoftReference, java.util.concurrent.ConcurrentHashMap

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private ConcurrentHashMap<K, LocaleObjectCache.CacheEntry<K, V>>
private ReferenceQueue<V>

Constructor Summary

AccessConstructor and Description
public
public
LocaleObjectCache(int initialCapacity, float loadFactor, int concurrencyLevel)

Method Summary

Modifier and TypeMethod and Description
private void
protected abstract V
createObject(K key)

public V
get(K key)

protected K
normalizeKey(K key)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_mapback to summary
private ConcurrentHashMap<K, LocaleObjectCache.CacheEntry<K, V>> _map
_queueback to summary
private ReferenceQueue<V> _queue

Constructor Detail

LocaleObjectCacheback to summary
public LocaleObjectCache()
LocaleObjectCacheback to summary
public LocaleObjectCache(int initialCapacity, float loadFactor, int concurrencyLevel)

Method Detail

cleanStaleEntriesback to summary
private void cleanStaleEntries()
Annotations
@SuppressWarnings:unchecked
createObjectback to summary
protected abstract V createObject(K key)
getback to summary
public V get(K key)
normalizeKeyback to summary
protected K normalizeKey(K key)
com.ibm.icu.impl.locale back to summary

private Class LocaleObjectCache.CacheEntry<K, V>

extends SoftReference<V>
Class Inheritance

Field Summary

Modifier and TypeField and Description
private K

Constructor Summary

AccessConstructor and Description
pack-priv
CacheEntry(K key, V value, ReferenceQueue<V> queue)

Method Summary

Modifier and TypeMethod and Description
pack-priv K
Inherited from java.lang.ref.SoftReference:
get

Field Detail

_keyback to summary
private K _key

Constructor Detail

CacheEntryback to summary
pack-priv CacheEntry(K key, V value, ReferenceQueue<V> queue)

Method Detail

getKeyback to summary
pack-priv K getKey()