Android.Util.SparseBooleanArray: Method Members

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

See Also: Inherited members from Java.Lang.Object

Public Methods

Append(int, bool)
Puts a key/value pair into the array, optimizing for the case where the key is greater than all existing keys in the array.
Clear()
Removes all key-value mappings from this SparseBooleanArray.
Clone() : SparseBooleanArray
Creates and returns a copy of this Object.
Delete(int)
Removes the mapping from the specified key, if there was any.
Get(int) : bool
Gets the boolean mapped from the specified key, or false if no such mapping has been made.
Get(int, bool) : bool
Gets the boolean mapped from the specified key, or the specified value if no such mapping has been made.
IndexOfKey(int) : int
Returns the index for which SparseBooleanArray.KeyAt(int) would return the specified key, or a negative number if the specified key is not mapped.
IndexOfValue(bool) : int
Returns an index for which SparseBooleanArray.ValueAt(int) would return the specified key, or a negative number if no keys map to the specified value.
KeyAt(int) : int
Given an index in the range 0...size()-1, returns the key from the indexth key-value mapping that this SparseBooleanArray stores.
Put(int, bool)
Adds a mapping from the specified key to the specified value, replacing the previous mapping from the specified key if there was one.
Size() : int
Returns the number of key-value mappings that this SparseBooleanArray currently stores.
ValueAt(int) : bool
Given an index in the range 0...size()-1, returns the value from the indexth key-value mapping that this SparseBooleanArray stores.