語言

SparseBooleanArray.Compute(Int32, IIntBinaryOperator) 方法

定義

嘗試根據該鍵目前的映射值計算新的映射值(若沒有當前映射則為假)。

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

參數

key
Int32

計算 的值的鍵。

function
IIntBinaryOperator

計算新值的函數。 第二個代表當前映射值的參數,0 代表假,1 代表真。 回傳的值也會以類似方式轉換為布林值,假為 0,否則為真。

傳回

新的映射值。

屬性

適用於