code: public void setAll(int index, Collection<? extends Byte> items) {
      rangeCheck(index, index + items.size());
      for (byte e : items) {
        elements[index++] = e;
      }
    }
docs: Sets a range of elements of this array.
  
  @param index
  The index of the first element to set.
  @param items
  The values to set.
  @throws IndexOutOfBoundsException
  if
  <code>index &lt; 0 || index + items.size() &gt; size()</code>.