Code example for ConcurrentHashMap

Methods: keySet

0
	private ConcurrentHashMap< valueType, Boolean > concSet = new ConcurrentHashMap< valueType, Boolean >();
 
	@Override 
	public Iterator< valueType > iterator()
	{ 
		return concSet.keySet()
			.iterator();
	} 
 
	@Override 
	public Object[] toArray()
	{ 
		return concSet.keySet()
			.toArray();
	} 
 
	@Override 
	public < T > T[] toArray( T[] a )
	{ 
		return concSet.keySet()
			.toArray(