Code example for WeakReference

0
			queue.remove(value);
		} 
		super.remove(key);
	} 
 
	@Override 
	public void clear() { 
		queue.clear();
		super.clear(); 
	} 
 
	@Override 
	protected int getSize(Bitmap value) {
		return value.getRowBytes() * value.getHeight();
	} 
 
	@Override 
	protected Bitmap removeNext() {
		return queue.remove(0);
	}