Lingua

SparseLongArray.Compute(Int32, ILongBinaryOperator) Metodo

Definizione

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

[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

Parametri

key
Int32

Chiave per cui calcolare il valore.

function
ILongBinaryOperator

Funzione per calcolare il nuovo valore.

Valori restituiti

Nuovo valore mappato.

Attributi

Si applica a