Lines Matching refs:value
99 * Gets the long mapped from the specified key, or the specified value
133 * Adds a mapping from the specified key to the specified value,
137 public void put(long key, long value) {
141 mValues[i] = value;
146 mValues = GrowingArrayUtils.insert(mValues, mSize, i, value);
152 * Returns the number of key-value mappings that this SparseIntArray
161 * the key from the <code>index</code>th key-value mapping that this
175 * the value from the <code>index</code>th key-value mapping that this
180 * <code>valueAt(0)</code> will return the value associated with the
181 * smallest key and <code>valueAt(size()-1)</code> will return the value
200 * specified value.
202 * and that multiple keys can map to the same value and this will
205 public int indexOfValue(long value) {
207 if (mValues[i] == value)
214 * Removes all key-value mappings from this SparseIntArray.
221 * Puts a key/value pair into the array, optimizing for the case where
224 public void append(long key, long value) {
226 put(key, value);
231 mValues = GrowingArrayUtils.append(mValues, mSize, value);
255 long value = valueAt(i);
256 buffer.append(value);