Apr 082011
 

What’s that? You’ve never heard of the ConcurrentHashSet before? It didn’t work out with the compiler? You may have typed it wrong. Try typing

Set<Object> processors = Collections.newSetFromMap(
    new ConcurrentHashMap<Object, Boolean>());

From http://dhruba.name/2009/08/05/concurrent-set-implementations-in-java-6/