assignAll method

void assignAll(
  1. Iterable<E> elements
)

Replaces all existing elements of this list with elements

Implementation

void assignAll(Iterable<E> elements) {
  clear();
  addAll(elements);
}