@Test public void testSimpleAdd() { BitmapLruCache cache = new BitmapLruCache(DEFAULT_SIZE); cache.put("asd", Bitmap.createBitmap(200, 200, Bitmap.Config.ARGB_8888)); Assert.assertTrue(cache.has("asd")); }
@Override public boolean has(String key) { if (key == null) return false; Bitmap value = get(key); return (value != null && !value.isRecycled()); }
BitmapLruCache extends LruCacheAdapter<String, Bitmap> { @Override public boolean has(String key) { if (key == null) return false; Bitmap value = get(key); return (value != null && !value.isRecycled()); } }
BitmapLruCache extends LruCacheAdapter<String, Bitmap> { @Override public boolean has(String key) { if (key == null) return false; Bitmap value = get(key); return (value != null && !value.isRecycled()); } BitmapLruCache(float percentOfAvailableMemory);  BitmapLruCache(int maxSize); }
BitmapLruCache extends LruCacheAdapter<String, Bitmap> { @Override public boolean has(String key) { if (key == null) return false; Bitmap value = get(key); return (value != null && !value.isRecycled()); } BitmapLruCache(float percentOfAvailableMemory);  BitmapLruCache(int maxSize); @Override boolean has(String key); }
BitmapLruCache extends LruCacheAdapter<String, Bitmap> { @Override public boolean has(String key) { if (key == null) return false; Bitmap value = get(key); return (value != null && !value.isRecycled()); } BitmapLruCache(float percentOfAvailableMemory);  BitmapLruCache(int maxSize); @Override boolean has(String key);  }