Module java.base
Package java.util.concurrent

# Class CopyOnWriteArrayList

=
public class CopyOnWriteArrayList<E>
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable, java.util.List<E>, java.util.RandomAccess

## Constructors

- =
  public CopyOnWriteArrayList()
- =
  public CopyOnWriteArrayList(E[] arg0)
- =
  public CopyOnWriteArrayList(java.util.Collection<? extends E> arg0)

## Methods

- =
  public void add(int arg0, E arg1)
- =
  public boolean add(E arg0)
- =
  public boolean addAll(int arg0, java.util.Collection<? extends E> arg1)
- =
  public boolean addAll(java.util.Collection<? extends E> arg0)
- =
  public int addAllAbsent(java.util.Collection<? extends E> arg0)
- =
  public void addFirst(E arg0)
- =
  public boolean addIfAbsent(E arg0)
- =
  public void addLast(E arg0)
- =
  public void clear()
- =
  public java.lang.Object clone()
- =
  public boolean contains(java.lang.Object arg0)
- =
  public boolean containsAll(java.util.Collection<?> arg0)
- =
  public boolean equals(java.lang.Object arg0)
- =
  public void forEach(java.util.function.Consumer<? super E> arg0)
- =
  public E get(int arg0)
- =
  public E getFirst()
- =
  public E getLast()
- =
  public int hashCode()
- =
  public int indexOf(java.lang.Object arg0)
- =
  public int indexOf(E arg0, int arg1)
- =
  public boolean isEmpty()
- =
  public java.util.Iterator<E> iterator()
- =
  public int lastIndexOf(java.lang.Object arg0)
- =
  public int lastIndexOf(E arg0, int arg1)
- =
  public java.util.ListIterator<E> listIterator()
- =
  public java.util.ListIterator<E> listIterator(int arg0)
- =
  public E remove(int arg0)
- =
  public boolean remove(java.lang.Object arg0)
- =
  public boolean removeAll(java.util.Collection<?> arg0)
- =
  public E removeFirst()
- =
  public boolean removeIf(java.util.function.Predicate<? super E> arg0)
- =
  public E removeLast()
- =
  public void replaceAll(java.util.function.UnaryOperator<E> arg0)
- =
  public boolean retainAll(java.util.Collection<?> arg0)
- =
  public java.util.List<E> reversed()
- =
  public E set(int arg0, E arg1)
- =
  public int size()
- =
  public void sort(java.util.Comparator<? super E> arg0)
- =
  public java.util.Spliterator<E> spliterator()
- =
  public java.util.List<E> subList(int arg0, int arg1)
- =
  public java.lang.Object[] toArray()
- =
  public <T> T[] toArray(T[] arg0)
- =
  public java.lang.String toString()

## Serialized Form

=

### serialVersionUID

=8673264195747942595

### Serialization Methods

- =
  private void readObject(java.io.ObjectInputStream arg0) throws java.io.IOException, java.lang.ClassNotFoundException
- =
  private void writeObject(java.io.ObjectOutputStream arg0) throws java.io.IOException

## Summary

No differences.