Set<String> set2 = new CopyOnWriteArraySet<>();
Set<String> set3 = Collections.synchronizedSet(new HashSet<>());
线程安全的Set
于 2024-09-22 21:01:27 首次发布
Set<String> set2 = new CopyOnWriteArraySet<>();
Set<String> set3 = Collections.synchronizedSet(new HashSet<>());