Like the title says, i would like to get a thread-safe HashSet using Guava Collections. Are any available?
Java 8 introduces new way to create concurrent hash set - ConcurrentHashMap.newKeySet()
Set set = ConcurrentHashMap.newKeySet();
It's shorter than wrapping in Collections.newSetFromMap
Collections.newSetFromMap