Language

SparseIntArray.Compute(Int32, IIntBinaryOperator) Method

Definition

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

[Android.Runtime.Register("compute", "(ILjava/util/function/IntBinaryOperator;)I", "GetCompute_ILjava_util_function_IntBinaryOperator_Handler", ApiSince=37)]
public virtual int Compute(int key, Java.Util.Functions.IIntBinaryOperator function);
[<Android.Runtime.Register("compute", "(ILjava/util/function/IntBinaryOperator;)I", "GetCompute_ILjava_util_function_IntBinaryOperator_Handler", ApiSince=37)>]
abstract member Compute : int * Java.Util.Functions.IIntBinaryOperator -> int
override this.Compute : int * Java.Util.Functions.IIntBinaryOperator -> int

Parameters

key
Int32

The key to compute the value for.

function
IIntBinaryOperator

The function to compute the new value.

Returns

The new mapped value.

Attributes

Applies to