Lines Matching refs:index
62 * @throws IndexOutOfBoundsException when index < 0 || index > size()
64 public void add(int index, long value) {
65 if (index < 0 || index > mSize) {
71 if (mSize - index != 0) {
72 System.arraycopy(mValues, index, mValues, index + 1, mSize - index);
75 mValues[index] = value;
128 public long get(int index) {
129 if (index >= mSize) {
130 throw new ArrayIndexOutOfBoundsException(mSize, index);
132 return mValues[index];
136 * Returns the index of the first occurrence of the specified value in this
150 * Removes the value at the specified index from this array.
152 public void remove(int index) {
153 if (index >= mSize) {
154 throw new ArrayIndexOutOfBoundsException(mSize, index);
156 System.arraycopy(mValues, index + 1, mValues, index, mSize - index - 1);