Top Fields Constructors Methods
com.ibm.icu.impl

public Class SimpleCache<K, V>

extends Object
implements ICUCache<K, V>
Class Inheritance
All Implemented Interfaces
com.ibm.icu.impl.ICUCache
Imports
java.lang.ref.Reference, .SoftReference, .WeakReference, java.util.Collections, .HashMap, .Map

Field Summary

Modifier and TypeField and Description
private volatile Reference<Map<K, V>>
private int
private static final int
private int

Constructor Summary

AccessConstructor and Description
public
public
SimpleCache(int cacheType)

public
SimpleCache(int cacheType, int initialCapacity)

Method Summary

Modifier and TypeMethod and Description
public void
public V
public void
put(K key, V value)

Implements com.ibm.icu.impl.ICUCache.put.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cacheRefback to summary
private volatile Reference<Map<K, V>> cacheRef
capacityback to summary
private int capacity
DEFAULT_CAPACITYback to summary
private static final int DEFAULT_CAPACITY
typeback to summary
private int type

Constructor Detail

SimpleCacheback to summary
public SimpleCache()
SimpleCacheback to summary
public SimpleCache(int cacheType)
SimpleCacheback to summary
public SimpleCache(int cacheType, int initialCapacity)

Method Detail

clearback to summary
public void clear()

Implements com.ibm.icu.impl.ICUCache.clear.

Annotations
@Override
getback to summary
public V get(Object key)

Implements com.ibm.icu.impl.ICUCache.get.

Annotations
@Override
putback to summary
public void put(K key, V value)

Implements com.ibm.icu.impl.ICUCache.put.

Annotations
@Override