LongSparseArray.Get Method

Definition

Overloads

Get(Int64)

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

Get(Int64, Object)

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

Get(Int64)

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

[Android.Runtime.Register("get", "(J)Ljava/lang/Object;", "GetGet_JHandler")]
public virtual Java.Lang.Object? Get (long key);
[<Android.Runtime.Register("get", "(J)Ljava/lang/Object;", "GetGet_JHandler")>]
abstract member Get : int64 -> Java.Lang.Object
override this.Get : int64 -> Java.Lang.Object

Parameters

key
Int64

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.LongSparseArray.get(long).

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

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

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

Parameters

key
Int64
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.LongSparseArray.get(long, 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