Code example for Map.Entry

Methods: getKey, getValue

0
 
			if (it.hasNext()) {
 
				tmp = it.next();
				if (tmp != null) {
					key = ((Entry<String, SoftReference<Bitmap>>) tmp).getKey();
 
					tmp = ((Entry<String, SoftReference<Bitmap>>) tmp).getValue();
 
				} 
				if (tmp != null)
					tmp = ((Reference<Bitmap>) tmp).get();
 
				if (tmp != null)
					if (tmp instanceof Bitmap) {
						// ((Bitmap) tmp).recycle(); 
						tmp = null;
						Log.i("Recycling", "One bitmap Recycled");
					} 
 
				imageCache.remove(key);