SparseArray<E>.Get Method

Definition

Overloads

Get(Int32)

Gets the Object mapped from the specified key, or null if no such mapping has been made.

Get(Int32, E)

Get(Int32)

Gets the Object mapped from the specified key, or null if no such mapping has been made.

[Android.Runtime.Register("get", "(I)Ljava/lang/Object;", "")]
public virtual E Get (int key);
[<Android.Runtime.Register("get", "(I)Ljava/lang/Object;", "")>]
override this.Get : int -> 'E

Parameters

key
Int32

Returns

E
Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

Get(Int32, E)

[Android.Runtime.Register("get", "(ILjava/lang/Object;)Ljava/lang/Object;", "")]
public virtual E Get (int key, E valueIfKeyNotFound);
[<Android.Runtime.Register("get", "(ILjava/lang/Object;)Ljava/lang/Object;", "")>]
override this.Get : int * 'E -> 'E

Parameters

key
Int32
valueIfKeyNotFound
E

Returns

E
Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to