public void putAll(Map t)
    {
        // Synchronize on the cache to ensure its integrity in a multi-threaded environment.
        synchronized (cache)
        {
            // Iterate over all elements in the map to add, placing each of them into an ElementMonitor before
            // putting them into the cache.
            for (Object nextKey : t.keySet())
            {
                Object nextValue = t.get(nextKey);

                // Delegate to the put method to wrap the new item in an ElementMonitor.
                cache.put(nextKey, nextValue);
            }
        }
    }
public void putAll(Map t)
    {
        
        synchronized (cache)
        {
            
            
            for (Object nextKey : t.keySet())
            {
                Object nextValue = t.get(nextKey);

                
                cache.put(nextKey, nextValue);
            }
        }
    }
public void putAll ( Map t ) { // Synchronize on the cache to ensure its integrity in a multi-threaded environment. synchronized ( cache ) { // Iterate over all elements in the map to add, placing each of them into an ElementMonitor before // putting them into the cache. for ( Object nextKey : t . keySet ( ) ) { Object nextValue = t . get ( nextKey ) ; // Delegate to the put method to wrap the new item in an ElementMonitor. cache . put ( nextKey , nextValue ) ; } } }
Copies all of the mappings from the specified map to this map (optional operation). The effect of this call is
equivalent to that of calling {@link #put(Object,Object) put(k, v)} on this map once for each mapping from key
<tt>k</tt> to value <tt>v</tt> in the specified map. The behavior of this operation is unspecified if the
specified map is modified while the operation is in progress.

@param  t Mappings to be stored in this map.

@throws UnsupportedOperationException if the <tt>putAll</tt> method is not supported by this map.
@throws ClassCastException            if the class of a key or value in the specified map prevents it from being
stored in this map.
@throws IllegalArgumentException      some aspect of a key or value in the specified map prevents it from being
stored in this map.
@throws NullPointerException          if the specified map is <tt>null</tt>, or if this map does not permit <tt>
null</tt> keys or values, and the specified map contains <tt>null</tt> keys
or values.
Copies all of the mappings from the specified map to this map ( optional operation ) . The effect of this call is equivalent to that of calling { @link #put ( Object Object ) put ( k v ) } on this map once for each mapping from key <tt > k< / tt > to value <tt > v< / tt > in the specified map . The behavior of this operation is unspecified if the specified map is modified while the operation is in progress .