Code example for ConcurrentHashMap

Methods: containsKey, get, remove

0
		} 
	} 
	 
	public static synchronized void removeComponent(IDValue id)
	{ 
		if (collisions.containsKey(id.hashCode()))
		{ 
			Integer i = collisions.get(id.hashCode());
			if (i == 1)
			{ 
				collisions.remove(id.hashCode());
			} 
			else 
			{ 
				collisions.put(id.hashCode(), i-1);
			} 
		} 
	} 
	 
	public static synchronized boolean hasCollisionComponent(IDValue id)
	{