Code example for ConcurrentMap

Methods: clear

0
	private static final String JSONCALLBACK = "jsoncallback";
	 
	private final ConcurrentMap<String, Object> map= new ConcurrentHashMap<String, Object>();
	 
    public void clear() { 
        map.clear();   
    }    
     
    public Json add(String key, Object value) {   
        map.put(key, value);   
        return this;   
    }  
     
    public Json remove(String key){
    	map.remove(key);
    	return this;
    } 
     
    ConcurrentMap<String, Object> getMap() {   
        return this.map;   
    }