LongSparseArray.Compute(Int64, ILongObjFunction) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Tente de calculer une nouvelle valeur mappée pour la clé spécifiée en fonction de son mappage actuel (ou null s’il n’existe aucun mappage actuel).
[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
Paramètres
- key
- Int64
Clé pour laquelle calculer la valeur.
- function
- ILongObjFunction
Fonction permettant de calculer la nouvelle valeur.
Retours
Nouvelle valeur mappée ou null si aucune.
- Attributs