LongSparseArray.Get Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| Get(Int64) |
Gets the Object mapped from the specified key, or |
| 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
The 64-bit integer key to look up.
Returns
The value mapped to key, or null if the key is absent.
- 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
The 64-bit integer key to look up.
- valueIfKeyNotFound
- Object
The value to return when the key has no mapping.
Returns
The mapped value, or valueIfKeyNotFound if the key is absent.
- 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.