Code example for Map

Methods: clear

0
	@Override 
	public void clear() { 
		lruCache.clear();
		super.clear(); 
	} 
 
	@Override 
	protected int getSize(Bitmap value) {
		return value.getRowBytes() * value.getHeight();
	} 
 
	@Override 
	protected Bitmap removeNext() {
		Bitmap mostLongUsedValue = null;
		synchronized (lruCache) {
			Iterator<Entry<String, Bitmap>> it = lruCache.entrySet().iterator();
			if (it.hasNext()) {
				Entry<String, Bitmap> entry = it.next();
				mostLongUsedValue = entry.getValue();
				it.remove();
			}