Android.Util.SparseArray Members

The members of Android.Util.SparseArray are listed below.

See Also: Inherited members from Java.Lang.Object

Public Constructors

Creates a new SparseArray containing no mappings.
Creates a new SparseArray containing no mappings that will not require any additional memory allocation to store the specified number of mappings.

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

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.