Month: July 2023

The CopyOnWriteArraySet Class – Concurrency: Part II

The CopyOnWriteArraySet<E> Class The CopyOnWriteArraySet class implements the java.util.Set interface (§15.4, p. 804). It does not implement any additional methods. Internally it uses a CopyOnWriteArrayList, and therefore shares the same basic properties with the list, except that, being a set, it does not allow duplicates and its elements have no ordering. Example 23.21 illustrates the