Code example for ConcurrentMap

Methods: containsValue

0
     * does NOT probe the disk cache. 
     */ 
    @Override 
    public synchronized boolean containsValue(Object value)
    { 
        return cache.containsValue(value);
    } 
 
    /** 
     * Removes an entry from both memory and disk. 
     */ 
    @Override 
    @SuppressWarnings("unchecked") 
    public synchronized ValT remove(Object key)
    { 
        ValT value = removeKey(key);
 
        if(isDiskCacheEnabled)
        { 
            File cachedValue = getFileForKey((KeyT) key);
            if(cachedValue.exists())