CopyOnWriteArrayList

GPTKB entity

Statements (23)
Predicate Object
gptkbp:instanceOf gptkb:class
gptkbp:author gptkb:Doug_Lea
gptkbp:containsElement generic (E)
gptkbp:documentation https://docs.oracle.com/javase/8/docs/api/java/util/CopyOnWriteArrayList.html
https://www.w3.org/2000/01/rdf-schema#label CopyOnWriteArrayList
gptkbp:implementedIn gptkb:List_interface
gptkb:Cloneable_interface
gptkb:RandomAccess_interface
gptkb:Serializable_interface
gptkbp:introducedIn gptkb:Java_5
gptkbp:iteratorBehavior fail-safe
does not throw ConcurrentModificationException
gptkbp:modificationBehavior creates new copy of underlying array
gptkbp:notRecommendedFor scenarios with frequent modifications
gptkbp:partOf gptkb:java.util_package
gptkbp:readOperation does not require locking
gptkbp:suitableFor scenarios with many reads and few writes
gptkbp:synchronizationMechanism copy-on-write
gptkbp:threadSafe true
gptkbp:usedIn concurrent programming
gptkbp:writeOperation expensive due to array copy
gptkbp:bfsParent gptkb:Java_Collections_Framework
gptkbp:bfsLayer 6