Lines Matching refs:value
55 * Appends the specified value to the end of this array.
57 public void add(int value) {
58 add(mSize, value);
62 * Inserts a value at the specified position in this array.
66 public void add(int index, int value) {
77 mValues[index] = value;
82 * Searches the array for the specified value using the binary search algorithm. The array must
85 * the specified value, there is no guarantee which one will be found.
87 * @param value The value to search for.
92 * Note that this guarantees that the return value will be >= 0 if and only if the key
95 public int binarySearch(int value) {
96 return ContainerHelpers.binarySearch(mValues, mSize, value);
141 * Returns the value at the specified position in this array.
151 * Returns the index of the first occurrence of the specified value in this
152 * array, or -1 if this array does not contain the value.
154 public int indexOf(int value) {
157 if (mValues[i] == value) {
165 * Removes the value at the specified index from this array.