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