Sets the i'th element of the array list to the given value.
@param i The index to set.
@param value The value to set.
162596
public void set(int i, byte value) {
        if (i < 0 || i >= size) {
            throw new IndexOutOfBoundsException();
        }
        elements[i] = value;
    }
373376
public void set(int i) {
		int offset = i - this.sizeinwords * WORDSIZE;
		if (offset + WORDSIZE < 0) {
			throw new IllegalArgumentException("unsupported write back");
		} else if ((offset + WORDSIZE >= 0) && (offset < 0)) {
			final int before = this.buffer.get(this.buffer.size() - 1);
			this.buffer.set(this.buffer.size() - 1, before
					| (1 << (offset + WORDSIZE)));
			// if(before != buffer.get(buffer.size()-1)) ++ cardinality;
		} else {
			final int numberofemptywords = offset / WORDSIZE;
			offset -= numberofemptywords * WORDSIZE;
			fastadd(1 << offset, this.sizeinwords + numberofemptywords);
			// ++cardinality;
		}

	}
798283
public void setValue(int index, int value) throws IOException {
        if (index >= structure.valueSizes.size()) {
            throw new IOException("Index " + index + " is out of range.");
        }
        Bytes.putInt(this.value, structure.valueByteOffsets.get(index), value);
    }
397086
public void set(int index, float value)
    {
        if (index < offset + array.length && index >= offset)
        {
            array[index - offset] += value;
        }
        else if (index < offset)
        {  //expand from left
            int gap = offset - index;
            int newSize = gap + array.length;
            float[] newArray = new float[newSize];
            newArray[0] = value;
            for (int i = 0; i < array.length; i++)
            {
                newArray[gap + i] = array[i];
            }
            this.offset = index;
            this.array = newArray;
        }
        else
        {
            int gap = index - (array.length + offset - 1);
            int newSize = array.length + gap;
            float[] newArray = new float[newSize];
            newArray[newSize - 1] = value;
            for (int i = 0; i < array.length; i++)
            {
                newArray[i] = array[i];
            }
            this.array = newArray;
        }
    }
397720
protected final void append (
        ArrayList<String> list, int index, String value)
    {
        // expand the list as necessary
        while (list.size() <= index) {
            list.add("");
        }
        list.set(index, list.get(index) + value);
    }
234037
public void set(long index, T value)
    {
        array[segment(index)][offset(index)] = value;
    }
981655
public void setAll(int value) {
        for (int i = 0; i < array.length; i++) {
            array[i] = value;
        }
    }
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;
  }
1039340
public void set(String value, int idx)
    {
        int rowOffset = getM();
        for ( int i = 0; i < getN(); i++ )
        {
        	if ( i < value.length())
        	{

        		setChar( value.charAt(i), idx + (rowOffset * i));
        	}
        	else 
        	{
        		setChar(' ',  idx + (rowOffset * i));
        	}
        }
    }
1177360
@NonNull
    @Override
    public MutableArray setValue(int index, Object value) {
        synchronized (lock) {
            if (Fleece.valueWouldChange(value, internalArray.get(index), internalArray)
                && (!internalArray.set(index, Fleece.toCBLObject(value)))) {
                throwRangeException(index);
            }
            return this;
        }
    }
1214222
public void set(int index, boolean value)
    {
        check(index);
        if (value)
        {
            array[index / 8] |= (1 << (index % 8));
        }
        else
        {
            array[index / 8] &= ~(1 << (index % 8));
        }
    }
667513
public void add(IntArrayList values) {
        ensureCapacity(size + values.size);
        for (int i=0; i<values.size; i++) {
            this.add(values.elements[i]);
        }
    }
566612
public void set(int index, long value) {
    assert index >= 0 : "index (" + index + ") should >= 0";
    assert index < length : "index (" + index + ") should < length (" + length + ")";
    Platform.putLong(baseObj, baseOffset + index * WIDTH, value);
  }
96678
public void setValue(List<Tag> value) throws IllegalArgumentException {
        this.type = null;
        this.value.clear();

        for(Tag tag : value) {
            this.add(tag);
        }
    }
48019
private void addElement(String value) {
        if (null == value) {
            return;
        }
        this.num_items++;
        this.genericValues.add(value);
        if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
            Tr.debug(tc, "addElement: " + value + " num: " + this.num_items);
        }
    }
771606
public void setValueI(int x, int y, double value) {
		int idx=y*width+x;
		setValueI_atIndex(idx, value);
	}
189103
public void set(final int i, final int j, final int val) {
		p[(j - i + editDistance + 1) * rowLength + j] = val;
	}