Lines Matching defs:key
8 * with an integer key which determines its order relative to other objects.
55 * Returns the index for the given key in the adapter.
57 * @param key The key to find in the array.
60 public int indexOf(int key) {
61 return mItems.indexOfKey(key);
76 * Sets the item for the given key.
78 * @param key The key associated with the item.
79 * @param item The item associated with the key.
81 public void set(int key, Object item) {
82 int index = mItems.indexOfKey(key);
89 mItems.append(key, item);
90 index = mItems.indexOfKey(key);
96 * Clears the given key and associated item from the adapter.
98 * @param key The key to be cleared.
100 public void clear(int key) {
101 int index = mItems.indexOfKey(key);
121 * Returns the object for the given key, or null if no mapping for that key exists.
123 public Object lookup(int key) {
124 return mItems.get(key);