Language

LongSparseArray.Compute(Int64, ILongObjFunction) Method

Definition

Attempts to compute a new mapped value for the specified key based on its current mapping (or null if there is no current mapping).

[Android.Runtime.Register("compute", "(JLandroid/util/function/LongObjFunction;)Ljava/lang/Object;", "GetCompute_JLandroid_util_function_LongObjFunction_Handler", ApiSince=37)]
public virtual Java.Lang.Object? Compute(long key, Android.Util.Function.ILongObjFunction function);
[<Android.Runtime.Register("compute", "(JLandroid/util/function/LongObjFunction;)Ljava/lang/Object;", "GetCompute_JLandroid_util_function_LongObjFunction_Handler", ApiSince=37)>]
abstract member Compute : int64 * Android.Util.Function.ILongObjFunction -> Java.Lang.Object
override this.Compute : int64 * Android.Util.Function.ILongObjFunction -> Java.Lang.Object

Parameters

key
Int64

The key to compute the value for.

function
ILongObjFunction

The function to compute the new value.

Returns

The new mapped value, or null if none.

Attributes

Applies to