Upper Java 1.8
java.util.Set< String> concurrentSet = java.util.concurrent.ConcurrentHashMap.newKeySet();
Lower Java 1.8
java.util.Set< String> concurrentSet = java.util.Collections.newSetFromMap( new java.util.concurrent.ConcurrentHashMap< String, Boolean>());
No comments:
Post a Comment