Android.Util.SparseArray: Method Members

The methods of Android.Util.SparseArray are listed below. For a list of all members, see the SparseArray Members list.

See Also: Inherited members from Java.Lang.Object

Public Methods

Append(int, Java.Lang.Object)
Documentation for this section has not yet been entered.
Clear()
Removes all key-value mappings from this SparseArray.
Clone() : SparseArray
Creates and returns a copy of this Object.
Delete(int)
Removes the mapping from the specified key, if there was any.
Get(int) : Java.Lang.Object
Gets the Object mapped from the specified key, or null if no such mapping has been made.
Get(int, Java.Lang.Object) : Java.Lang.Object
Documentation for this section has not yet been entered.
IndexOfKey(int) : int
Returns the index for which SparseArray`1.keyAt(int) would return the specified key, or a negative number if the specified key is not mapped.
IndexOfValue(Java.Lang.Object) : int
Documentation for this section has not yet been entered.
KeyAt(int) : int
Given an index in the range 0...size()-1, returns the key from the indexth key-value mapping that this SparseArray stores.
Put(int, Java.Lang.Object)
Documentation for this section has not yet been entered.
Remove(int)
Alias for SparseArray`1.delete(int).
RemoveAt(int)
Removes the mapping at the specified index.
RemoveAtRange(int, int)
Remove a range of mappings as a batch.
SetValueAt(int, Java.Lang.Object)
Documentation for this section has not yet been entered.
Size() : int
Returns the number of key-value mappings that this SparseArray currently stores.
ValueAt(int) : Java.Lang.Object
Given an index in the range 0...size()-1, returns the value from the indexth key-value mapping that this SparseArray stores.