Code example for ConcurrentMap

Methods: put

0
		return sRunningTasks.get(key);
	} 
 
	private static void addRunningTask(BackgroundTask<?> task) {
		if (task.getId() != null) {
			sRunningTasks.put(task.getId(), task);
		} 
	} 
 
	private static void removeTask(String key) {
		if (key != null) {
			sRunningTasks.remove(key);
		} 
	} 
 
	//---------------------------------------------- 
	// Constructors. 
 
	/** 
	 * Constructor. <strong>Must be called on main thread.</strong> 
	 */