Share via


ConcurrentHashMap.Replace Method

Definition

Overloads

Replace(Object, Object)

To be added

Replace(Object, Object, Object)

To be added

Replace(Object, Object)

To be added

[Android.Runtime.Register("replace", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;", "GetReplace_Ljava_lang_Object_Ljava_lang_Object_Handler")]
public virtual Java.Lang.Object? Replace (Java.Lang.Object key, Java.Lang.Object value);
[<Android.Runtime.Register("replace", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;", "GetReplace_Ljava_lang_Object_Ljava_lang_Object_Handler")>]
abstract member Replace : Java.Lang.Object * Java.Lang.Object -> Java.Lang.Object
override this.Replace : Java.Lang.Object * Java.Lang.Object -> Java.Lang.Object

Parameters

key
Object
value
Object

Returns

the previous value associated with the specified key, or null if there was no mapping for the key

Implements

Attributes

Remarks

To be added

Java documentation for java.util.concurrent.ConcurrentHashMap.replace(K, V).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

Replace(Object, Object, Object)

To be added

[Android.Runtime.Register("replace", "(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z", "GetReplace_Ljava_lang_Object_Ljava_lang_Object_Ljava_lang_Object_Handler")]
public virtual bool Replace (Java.Lang.Object key, Java.Lang.Object oldValue, Java.Lang.Object newValue);
[<Android.Runtime.Register("replace", "(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z", "GetReplace_Ljava_lang_Object_Ljava_lang_Object_Ljava_lang_Object_Handler")>]
abstract member Replace : Java.Lang.Object * Java.Lang.Object * Java.Lang.Object -> bool
override this.Replace : Java.Lang.Object * Java.Lang.Object * Java.Lang.Object -> bool

Parameters

key
Object
oldValue
Object
newValue
Object

Returns

the previous value associated with the specified key, or null if there was no mapping for the key

Implements

Attributes

Remarks

To be added

Java documentation for java.util.concurrent.ConcurrentHashMap.replace(K, V, V).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to