Lingua

SparseArray.Compute(Int32, IIntObjFunction) Metodo

Definizione

Tenta di calcolare un nuovo valore mappato per la chiave specificata in base al mapping corrente o null se non è presente alcun mapping corrente.

[Android.Runtime.Register("compute", "(ILandroid/util/function/IntObjFunction;)Ljava/lang/Object;", "GetCompute_ILandroid_util_function_IntObjFunction_Handler", ApiSince=37)]
public virtual Java.Lang.Object? Compute(int key, Android.Util.Function.IIntObjFunction function);
[<Android.Runtime.Register("compute", "(ILandroid/util/function/IntObjFunction;)Ljava/lang/Object;", "GetCompute_ILandroid_util_function_IntObjFunction_Handler", ApiSince=37)>]
abstract member Compute : int * Android.Util.Function.IIntObjFunction -> Java.Lang.Object
override this.Compute : int * Android.Util.Function.IIntObjFunction -> Java.Lang.Object

Parametri

key
Int32

Chiave per cui calcolare il valore.

function
IIntObjFunction

Funzione per calcolare il nuovo valore.

Valori restituiti

Nuovo valore mappato oppure null se non è presente.

Attributi

Si applica a