I have a data structure like this in java:
ConcurrentHashMap<String, Set<String>> objects;
Set(HashSet) is not a concurrent data structure.
Multiple threads can safely mutate the ConcurrentHashMap but what about the Set in it? Is the Set objects in the Map are thread-safe? Or the ConcurrentHashMap provides thread-safety for itself only?
Thanks