Code example for List

Methods: remove

0
 */ 
public class FIFOLimitedMemoryCache extends LimitedMemoryCache<String, Bitmap> {
 
	private final List<Bitmap> queue = Collections.synchronizedList(new LinkedList<Bitmap>());
 
	public FIFOLimitedMemoryCache(int sizeLimit) {
		super(sizeLimit);
	} 
 
	@Override 
	public boolean put(String key, Bitmap value) {
		if (super.put(key, value)) {
			queue.add(value);
			return true; 
		} else { 
			return false; 
		} 
	} 
 
	@Override 
	public void remove(String key) {