// Recycle all bitmaps in the cache and clear the cache.
 public synchronized void clear() {
   for (Entry e : mCache) {
     if (e.mBitmap != null) {
       e.mBitmap.recycle();
     }
     e.clear();
   }
 }
Exemple #2
0
 public Object remove(final Object key) {
   Entry e = removeMap(key);
   if (e != null) {
     Object value = e.value;
     removeList(indexOf(e));
     e.clear();
     return value;
   }
   return null;
 }
Exemple #3
0
 @Override
 public VALUE remove(final Object key) {
   Entry<KEY, VALUE> e = removeMap(key);
   if (e != null) {
     VALUE value = e.value;
     removeList(indexOf(e));
     e.clear();
     return value;
   }
   return null;
 }
Exemple #4
0
 /** Resets values to defaults for object reuse. */
 @Override
 public void clear() {
   super.clear();
   syncAccount = null;
   photosDirty = false;
   editUri = null;
   user = null;
   title = null;
   summary = null;
   datePublished = 0;
   dateUpdated = 0;
   dateEdited = 0;
   numPhotos = 0;
   bytesUsed = 0;
   locationString = null;
   thumbnailUrl = null;
   htmlPageUrl = null;
 }