Code example for ConcurrentMap

Methods: clear

0
public static void setPlaceholder(Drawable drawable) {  
    placeholder = drawable;  
}   
 
public void clearCache(){ 
	cache.clear();
} 
 
public  Drawable getDrawableFromCache(String url) {  
    if (cache.containsKey(url)) {  
        return cache.get(url); 
    }   
 
    return null;   
}   
 
public void queueJob(final String url, final ImageView imageView) {  
    /* Create handler in UI thread. */   
    final   Handler handler = new Handler() {  
        @Override   
        public void handleMessage(Message msg) {