Lines Matching refs:value
97 * Gets the long mapped from the specified key, or the specified value
131 * Adds a mapping from the specified key to the specified value,
135 public void put(int key, long value) {
139 mValues[i] = value;
144 mValues = GrowingArrayUtils.insert(mValues, mSize, i, value);
150 * Returns the number of key-value mappings that this SparseIntArray
159 * the key from the <code>index</code>th key-value mapping that this
173 * the value from the <code>index</code>th key-value mapping that this
178 * <code>valueAt(0)</code> will return the value associated with the
179 * smallest key and <code>valueAt(size()-1)</code> will return the value
198 * specified value.
200 * and that multiple keys can map to the same value and this will
203 public int indexOfValue(long value) {
205 if (mValues[i] == value)
212 * Removes all key-value mappings from this SparseIntArray.
219 * Puts a key/value pair into the array, optimizing for the case where
222 public void append(int key, long value) {
224 put(key, value);
229 mValues = GrowingArrayUtils.append(mValues, mSize, value);
253 long value = valueAt(i);
254 buffer.append(value);