public boolean addAll(int index, Collection<? extends E> c) { if (index < 0 || index > size) throw new IndexOutOfBoundsException("Index: " + index + ", Size: " + size); int cSize = c.size(); if (cSize == 0) return false; checkForComodification(); l.addAll(offset + index, c); expectedModCount = l.modCount; size += cSize; modCount++; return true; }
public boolean addAll(int index, Collection<? extends T> c) { return adapter.addAll(index, c); }
public boolean addAll(Collection<? extends T> c) { return adapter.addAll(c); }