Java collections framework: Difference between revisions

Content deleted Content added
Set interfaces: Add info on ConcurrentSkipListSet
Corrected spelling.
Line 182:
 
====CopyOnWriteArraySet class====
{{code|CopyOnWriteArraySet}} is a concurrent replacement for a synchornizedsynchronized {{java|Set}}. It provides improved concurrency in many situations by removing the need to perform synchronization or making a copy of the object during iteration, similar to how {{code|CopyOnWriteArrayList}} acts as the concurrent replacement for a synchronized {{java|List}}.{{sfn|Goetz|Peierls|Bloch|Bowbeer|2006|loc=§5.2.3 CopyOnWriteArrayList|pp=86-89}}
On the other hand, similar to {{code|CopyOnWriteArrayList}}, {{code|CopyOnWriteArraySet}} should not be used when sychronization is mandatory.