SparseArray<E>.Get SparseArray<E>.Get Method

Definition

Overloads

Get(Int32) Get(Int32)

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

Get(Int32, E) Get(Int32, E)

Get(Int32) 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);
override this.Get : int -> 'E

Parameters

key
Int32 Int32

Returns

E E

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.

Get(Int32, E) Get(Int32, E)

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

Parameters

key
Int32 Int32
valueIfKeyNotFound
E E

Returns

E E

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