Concurrent set in java








There is no ConcurrentHashSet class in java but you can get a concurrent set from a ConcurrentHashMap using the following method:
Set set = Collections.newSetFromMap(new ConcurrentHashMap());

See also




No comments:

Post a Comment