| java.lang.Object com.ibm.icu.impl.SoftCache
SoftCache | public class SoftCache (Code) | | LRU hash map using softly-referenced values
|
SoftCache | public SoftCache()(Code) | | Construct a SoftCache with default cache size
|
SoftCache | public SoftCache(int initialSize, int maxSize)(Code) | | Construct a SoftCache with sepcified initial/max size
Parameters: initialSize - the initial cache size Parameters: maxSize - the maximum cache size |
clear | public synchronized void clear()(Code) | | Clear the cache contents
|
get | public synchronized Object get(Object key)(Code) | | Get an object from the cache
Parameters: key - key object the cached value, null when the value is not found. |
put | public synchronized Object put(Object key, Object value)(Code) | | Put an object to the cache
Parameters: key - key object Parameters: value - value object the value previously put, null when not matching key is found. |
remove | public synchronized Object remove(Object key)(Code) | | Remove a cache entry from the cache
Parameters: key - key object the value of cache entry which is removed from this cache,or null when no entry for the key was no found. |
|
|