Langue

SparseLongArray.Compute(Int32, ILongBinaryOperator) Méthode

Définition

Tente de calculer une nouvelle valeur mappée pour la clé spécifiée en fonction de sa valeur mappée actuelle (ou 0 s’il n’existe aucun mappage actuel).

[Android.Runtime.Register("compute", "(ILjava/util/function/LongBinaryOperator;)J", "GetCompute_ILjava_util_function_LongBinaryOperator_Handler", ApiSince=37)]
public virtual long Compute(int key, Java.Util.Functions.ILongBinaryOperator function);
[<Android.Runtime.Register("compute", "(ILjava/util/function/LongBinaryOperator;)J", "GetCompute_ILjava_util_function_LongBinaryOperator_Handler", ApiSince=37)>]
abstract member Compute : int * Java.Util.Functions.ILongBinaryOperator -> int64
override this.Compute : int * Java.Util.Functions.ILongBinaryOperator -> int64

Paramètres

key
Int32

Clé pour laquelle calculer la valeur.

function
ILongBinaryOperator

Fonction permettant de calculer la nouvelle valeur.

Retours

Nouvelle valeur mappée.

Attributs

S’applique à