Exemplo n.º 1
0
  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;
  }
Exemplo n.º 2
0
 public boolean addAll(int index, Collection<? extends T> c) {
   return adapter.addAll(index, c);
 }
Exemplo n.º 3
0
 public boolean addAll(Collection<? extends T> c) {
   return adapter.addAll(c);
 }