Code example for ConcurrentMap

Methods: getremove

0
		ConcurrentMap<String, String> langs = repo.get(peli);
		return langs == null ? StringUtils.EMPTY : langs.get(lang);
	} 
	 
	public boolean remove(String peli, String lang){
		ConcurrentMap<String, String> langs = repo.get(peli);
		 
		boolean result = false;
		 
		if ( langs != null ) {
			result = langs.remove(lang) != null;
		} 
 
		if ( MapUtils.isEmpty(langs) ) {
			repo.remove(peli);
		} 
				 
		return result;
	} 
	 
Connect your IDE to all the code out there  Get Codota for Java