コード例 #1
0
 // 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();
   }
 }
コード例 #2
0
ファイル: ArrayMap.java プロジェクト: truecping1982/LGame
 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;
 }
コード例 #3
0
ファイル: ArrayMap.java プロジェクト: tonkatu05/lasta-di
 @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;
 }
コード例 #4
0
ファイル: AlbumEntry.java プロジェクト: nicoster/Gallery
 /** 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;
 }