Lines Matching refs:index
131 for (int index = 0; index < currentSize; index++)
133 Value thisValue = this.values[index];
139 Value otherValue = other.values[index];
148 values[index] = newValue;
186 * @param index the index of the stack element, counting from the bottom
190 public Value getBottom(int index)
192 return values[index];
198 * @param index the index of the stack element, counting from the bottom
202 public void setBottom(int index, Value value)
204 values[index] = value;
210 * @param index the index of the stack element, counting from the top
214 public Value getTop(int index)
216 return values[currentSize - index - 1];
222 * @param index the index of the stack element, counting from the top
226 public void setTop(int index, Value value)
228 values[currentSize - index - 1] = value;
234 * @param index the index of the stack element, counting from the top
237 public void removeTop(int index)
239 System.arraycopy(values, currentSize - index,
240 values, currentSize - index - 1,
241 index);
514 for (int index = 0; index < currentSize; index++)
516 Value thisValue = this.values[index];
517 Value otherValue = other.values[index];
533 for (int index = 0; index < currentSize; index++)
535 Value value = values[index];
550 for (int index = 0; index < currentSize; index++)
552 Value value = values[index];