Lines Matching refs:item
45 * Returns the index for the given item in the adapter.
47 * @param item The item to find in the array.
48 * @return Index of the item, or a negative value if not found.
50 public int indexOf(Object item) {
51 return mItems.indexOfValue(item);
58 * @return Index of the item, or a negative value if not found.
68 * @param positionStart The position of first item that has changed.
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) {
84 if (mItems.valueAt(index) != item) {
85 mItems.setValueAt(index, item);
89 mItems.append(key, item);
96 * Clears the given key and associated item from the adapter.