Lines Matching defs:index
64 * @throws IndexOutOfBoundsException when index < 0 || index > size()
66 public void add(int index, int value) {
67 if (index < 0 || index > mSize) {
73 if (mSize - index != 0) {
74 System.arraycopy(mValues, index, mValues, index + 1, mSize - index);
77 mValues[index] = value;
88 * @return index of the search key, if it is contained in the array; otherwise, <i>(-(insertion
90 * be inserted into the array: the index of the first element greater than the key, or
143 public int get(int index) {
144 if (index >= mSize) {
145 throw new ArrayIndexOutOfBoundsException(mSize, index);
147 return mValues[index];
151 * Returns the index of the first occurrence of the specified value in this
165 * Removes the value at the specified index from this array.
167 public void remove(int index) {
168 if (index >= mSize) {
169 throw new ArrayIndexOutOfBoundsException(mSize, index);
171 System.arraycopy(mValues, index + 1, mValues, index, mSize - index - 1);