Code example for LoadingCache

Methods: asMap

0
    private final ConcurrentMap<K, V> cacheMap;
 
    public LoadingCacheMap(Class<K> keyClass, LoadingCache<K, V> cache) {
        this.keyClass = keyClass;
        this.cache = cache;
        this.cacheMap = cache.asMap();
    } 
 
    // --- ConcurrentMap support --- 
 
    @Override 
    public V putIfAbsent(K key, V value) {
        return cacheMap.putIfAbsent(key, value);
    } 
 
    @Override 
    public boolean remove(Object key, Object value) { 
        return cacheMap.remove(key, value);
    } 
 
Contextual code suggestions in your IDE  Get Codota for Java