public void putAll ( Map < KEY , VALUE > mapDataToPut ) { int targetSize = maxSize - mapDataToPut . size ( ) ; if ( maxSize > 0 && values . size ( ) > targetSize ) { evictToTargetSize ( targetSize ) ; } Set < Entry < KEY , VALUE > > entries = mapDataToPut . entrySet ( ) ; for ( Entry < KEY , VALUE > entry : entries ) { put ( entry . getKey ( ) , entry . getValue ( ) ) ; } }
Stores all entries contained in the given map in the cache .