Code example for ConcurrentMap

Methods: containsValue

     * Checks if the given value is currently hold in memory. 
    public synchronized boolean containsValue(Object value) {
        return cache.containsValue(value);
    public synchronized ValT remove(Object key) {
        ValT value = removeKey(key);
        if (isDiskCacheEnabled) {
            File cachedValue = getFileForKey((KeyT) key);
            if (cachedValue.exists()) {
        return value;
Connect your IDE to all the code out there  Get Codota for Java