Code example for Map

Methods: putAll

0
 
    public final void putAll(final Map<? extends K, ? extends V> t) {
        lock.lock();
        try { 
            final M map = copy();
            map.putAll(t);
            set(map);
        } finally { 
            lock.unlock();
        } 
    } 
 
    protected M copy() { 
        lock.lock();
        try { 
            return copy(delegate);
        } finally { 
            lock.unlock();
        } 
    }