Condividi tramite


SparseArray.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, Object)

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

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;", "GetGet_IHandler")]
public virtual Java.Lang.Object? Get (int key);
[<Android.Runtime.Register("get", "(I)Ljava/lang/Object;", "GetGet_IHandler")>]
abstract member Get : int -> Java.Lang.Object
override this.Get : int -> Java.Lang.Object

Parameters

key
Int32

Returns

Attributes

Remarks

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

Java documentation for android.util.SparseArray.get(int).

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, Object)

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

[Android.Runtime.Register("get", "(ILjava/lang/Object;)Ljava/lang/Object;", "GetGet_ILjava_lang_Object_Handler")]
public virtual Java.Lang.Object? Get (int key, Java.Lang.Object? valueIfKeyNotFound);
[<Android.Runtime.Register("get", "(ILjava/lang/Object;)Ljava/lang/Object;", "GetGet_ILjava_lang_Object_Handler")>]
abstract member Get : int * Java.Lang.Object -> Java.Lang.Object
override this.Get : int * Java.Lang.Object -> Java.Lang.Object

Parameters

key
Int32
valueIfKeyNotFound
Object

Returns

Attributes

Remarks

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

Java documentation for android.util.SparseArray.get(int, E).

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