Code example for ConcurrentHashMap

Methods: containsKey, get

0
			load(context);
		} 
	} 
 
	public synchronized String getOption(String option) {
		if (options.containsKey(option))
			return options.get(option);
		return null; 
	} 
 
	private synchronized void deleteOptions(Context context, String... args) {
		for (String option : args) {
			options.remove(option);
		} 
 
		save(context);
	} 
 
	private synchronized void setOptions(Context context, String... args) {
		for (int i = 0; i < args.length; i += 2) {
			options.put(args[i], args[i + 1]);