public synchronized void setCapacity ( int capacity ) { BitmapLRUCache lruCacheNew = new BitmapLRUCache ( capacity ) ; lruCacheNew . putAll ( this . lruCache ) ; this . lruCache = lruCacheNew ; }
Sets the new size of this cache . If this cache already contains more items than the new capacity allows items are discarded based on the cache policy .