CopyOnWriteArraySet的构造方法源码上是这样写的,所以直接参考COW即可:
public CopyOnWriteArraySet() {
al = new CopyOnWriteArrayList<E>();
}
2023-02-14 11:21:21
CopyOnWriteArraySet的构造方法源码上是这样写的,所以直接参考COW即可:
public CopyOnWriteArraySet() {
al = new CopyOnWriteArrayList<E>();
}