@Test public void testPutNull() throws IOException { LruCacheAdapter<String, Bitmap> cache = new LruCacheAdapter<String, Bitmap>(new MyCache(DEFAULT_SIZE)); cache.put(null, null); Assert.assertTrue("This should run gracefully", true); }
@Override public void put(K key, V value) { if (key == null || value == null) return; lruCache.put(key, value); }
LruCacheAdapter implements MemoryCache<K, V> { @Override public void put(K key, V value) { if (key == null || value == null) return; lruCache.put(key, value); } }
LruCacheAdapter implements MemoryCache<K, V> { @Override public void put(K key, V value) { if (key == null || value == null) return; lruCache.put(key, value); } LruCacheAdapter(LruCache<K, V> lruCache); }
LruCacheAdapter implements MemoryCache<K, V> { @Override public void put(K key, V value) { if (key == null || value == null) return; lruCache.put(key, value); } 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 put(K key, V value) { if (key == null || value == null) return; lruCache.put(key, value); } 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);  }