Properties.Merge(Object, Object, IBiFunction) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a value for an absent key or combines it with an existing local value.
[Android.Runtime.Register("merge", "(Ljava/lang/Object;Ljava/lang/Object;Ljava/util/function/BiFunction;)Ljava/lang/Object;", "GetMerge_Ljava_lang_Object_Ljava_lang_Object_Ljava_util_function_BiFunction_Handler", ApiSince=35)]
public virtual Java.Lang.Object? Merge(Java.Lang.Object? key, Java.Lang.Object? value, Java.Util.Functions.IBiFunction? remappingFunction);
[<Android.Runtime.Register("merge", "(Ljava/lang/Object;Ljava/lang/Object;Ljava/util/function/BiFunction;)Ljava/lang/Object;", "GetMerge_Ljava_lang_Object_Ljava_lang_Object_Ljava_util_function_BiFunction_Handler", ApiSince=35)>]
abstract member Merge : Java.Lang.Object * Java.Lang.Object * Java.Util.Functions.IBiFunction -> Java.Lang.Object
override this.Merge : Java.Lang.Object * Java.Lang.Object * Java.Util.Functions.IBiFunction -> Java.Lang.Object
Parameters
- key
- Object
The non-null key whose mapping is to be added or updated.
- value
- Object
The non-null value to store when the key is absent, or to pass to the function when present.
- remappingFunction
- IBiFunction
The non-null function called with the existing value and the supplied value.
Returns
The resulting value, or null if the function removes the entry.
- Attributes
Remarks
A null function result removes the entry. The function must not update other mappings during computation. This operation does not use or change the default property list.