IdentityHashMap.Replace(Object, Object, Object) 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.
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", ApiSince=36)]
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", ApiSince=36)>]
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
Implements
- Attributes
Remarks
To be added
More formally, if this map contains a mapping from a key k
to a value v
such that (key == k)
and (oldValue == v)
, then this method associates k
with newValue
and returns true
; otherwise it returns false
.
Java documentation for java.util.IdentityHashMap.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.