@Test public void testClear() { LruCacheAdapter<String, Bitmap> cache = new LruCacheAdapter<String, Bitmap>(new MyCache(DEFAULT_SIZE)); cache.put("asd", Bitmap.createBitmap(200, 200, Bitmap.Config.ARGB_8888)); Assert.assertTrue(cache.has("asd")); cache.clear(); Assert.assertFalse(cache.has("asd")); }
@Override public void clear() { lruCache.evictAll(); }
LruCacheAdapter implements MemoryCache<K, V> { @Override public void clear() { lruCache.evictAll(); } }
LruCacheAdapter implements MemoryCache<K, V> { @Override public void clear() { lruCache.evictAll(); } LruCacheAdapter(LruCache<K, V> lruCache); }
LruCacheAdapter implements MemoryCache<K, V> { @Override public void clear() { lruCache.evictAll(); } LruCacheAdapter(LruCache<K, V> lruCache); LruCache<K, V> getLruCache(); @Override V get(K key); @Override void put(K key, V value); @Override void remove(K key); @Override void clear(); @Override int getCurrentSize(); @Override int getMaxSize(); @Override boolean has(K key); }
LruCacheAdapter implements MemoryCache<K, V> { @Override public void clear() { lruCache.evictAll(); } LruCacheAdapter(LruCache<K, V> lruCache); LruCache<K, V> getLruCache(); @Override V get(K key); @Override void put(K key, V value); @Override void remove(K key); @Override void clear(); @Override int getCurrentSize(); @Override int getMaxSize(); @Override boolean has(K key);  }