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.length &gt; size()</code>.
767106
public void setAll(int index, byte[] items) {
    rangeCheck(index, index + items.length);
    for (int i = index, j = 0; j < items.length; i++, j++) {
      elements[i] = items[j];
    }
  }
591139
protected void assertRange(int index, boolean allowLast) {
		final int csize = expurge();
		if (index < 0) {
			throw new IndexOutOfBoundsException(Locale.getString("E1", index)); //$NON-NLS-1$
		}
		if (allowLast && (index > csize)) {
			throw new IndexOutOfBoundsException(Locale.getString("E2", csize, index)); //$NON-NLS-1$
		}
		if (!allowLast && (index >= csize)) {
			throw new IndexOutOfBoundsException(Locale.getString("E3", csize, index)); //$NON-NLS-1$
		}
	}
140617
public void setItems(java.util.Collection<Route> items) {
        if (items == null) {
            this.items = null;
            return;
        }

        this.items = new java.util.ArrayList<Route>(items);
    }
763232
public static void atIndex( final int[] array, int index, int value ) {
        final int i = calculateIndex( array, index );

        array[ i ] = value;
    }
798554
public boolean set(int index) {
        if(index < 0 || index >= size)
            throw new IndexOutOfBoundsException("index: " + index);

        int wordIndex=wordIndex(index);
        boolean already_set=(words[wordIndex] & (1L << index)) != 0;
        words[wordIndex]|=(1L << index); // Restores invariants
        return !already_set;
    }
957816
public final V set(int index, V value) {
    int size = this.size;
    if (index < 0 || index >= size) {
      throw new IndexOutOfBoundsException();
    }
    int valueDataIndex = 1 + (index << 1);
    V result = valueAtDataIndex(valueDataIndex);
    this.data[valueDataIndex] = value;
    return result;
  }
415339
public final void notifyContentItemRangeRemoved(int positionStart, int itemCount) {
        if (positionStart < 0 || itemCount < 0 || positionStart + itemCount > contentItemCount) {
            throw new IndexOutOfBoundsException("The given range [" + positionStart + " - "
                    + (positionStart + itemCount - 1) + "] is not within the position bounds for content items [0 - "
                    + (contentItemCount - 1) + "].");
        }
        notifyItemRangeRemoved(positionStart + headerItemCount, itemCount);
    }
988300
public void setItems(Map<String, String> items) {

        clearItems();
        m_items = items;
        for (Map.Entry<String, String> entry : items.entrySet()) {
            addOption(entry.getKey(), entry.getValue());
        }
    }
397333
public function offsetSet($index, $item) : void
    {
        if ($item instanceof Fieldset) {
            foreach ($item as $subitem) {
                $this->setValue($subitem);
            }
        } else {
            $this->setValue($item);
        }
        parent::offsetSet($index, $item);
    }
918409
public void setIndexNames(java.util.Collection<String> indexNames) {
        if (indexNames == null) {
            this.indexNames = null;
            return;
        }

        this.indexNames = new java.util.ArrayList<String>(indexNames);
    }
810444
public void setSelectedItems(Collection elements) {
		if (m_selectedItems!=null) {
            for (Object m_selectedItem : m_selectedItems) {
                ((JScoreElement) m_selectedItem).setColor(null);
            }
			m_selectedItems = null;
		}
		if ((elements != null) && (elements.size() > 0)) {
			m_selectedItems = elements;
            for (Object m_selectedItem : m_selectedItems) {
                ((JScoreElement) m_selectedItem).setColor(SELECTED_ITEM_COLOR);
            }
		}
	}
735371
public void setItems(java.util.Collection<DomainName> items) {
        if (items == null) {
            this.items = null;
            return;
        }

        this.items = new java.util.ArrayList<DomainName>(items);
    }
1349820
private static void checkRange(int fromIndex, int toIndex) {
		if (fromIndex < 0)
			throw new IndexOutOfBoundsException("fromIndex < 0: " + fromIndex);
		if (toIndex < 0)
			throw new IndexOutOfBoundsException("toIndex < 0: " + toIndex);
		if (fromIndex > toIndex)
			throw new IndexOutOfBoundsException("fromIndex: " + fromIndex +
					" > toIndex: " + toIndex);
	}
1094464
protected final void rangeCheck (int index, boolean insert)
    {
        if ((index < 0) || (insert ? (index > _size) : (index >= _size))) {
            throw new IndexOutOfBoundsException(
                "Index: " + index + ", Size: " + _size);
        }
    }
1246557
public void setRange(int indices[]) {
        this.currentVal = Arrays.toString(indices); 								// "[1,2,3]"
		this.currentVal = this.currentVal.substring(1,this.currentVal.length()-1);	// "1,2,3"
    }
1272958
public static void setIndex(Matcher matcher, int idx) {
        int count = getCount(matcher);
        if (idx < -count || idx >= count) {
            throw new IndexOutOfBoundsException("index is out of range " + (-count) + ".." + (count - 1) + " (index = " + idx + ")");
        }
        if (idx == 0) {
            matcher.reset();
        } else if (idx > 0) {
            matcher.reset();
            for (int i = 0; i < idx; i++) {
                matcher.find();
            }
        } else if (idx < 0) {
            matcher.reset();
            idx += getCount(matcher);
            for (int i = 0; i < idx; i++) {
                matcher.find();
            }
        }
    }
590266
public void set(int index) {
		Preconditions.checkArgument(index < bitLength && index >= 0);

		int byteIndex = (index & BYTE_POSITION_MASK) >>> 3;
		byte current = memorySegment.get(offset + byteIndex);
		current |= (1 << (index & BYTE_INDEX_MASK));
		memorySegment.put(offset + byteIndex, current);
	}