HashMap.Remove(Object, Object) Method

Definition

Removes the mapping for the specified key from this map if present.

[Android.Runtime.Register("remove", "(Ljava/lang/Object;Ljava/lang/Object;)Z", "GetRemove_Ljava_lang_Object_Ljava_lang_Object_Handler", ApiSince=26)]
public virtual bool Remove (Java.Lang.Object? key, Java.Lang.Object? value);
[<Android.Runtime.Register("remove", "(Ljava/lang/Object;Ljava/lang/Object;)Z", "GetRemove_Ljava_lang_Object_Ljava_lang_Object_Handler", ApiSince=26)>]
override this.Remove : Java.Lang.Object * Java.Lang.Object -> bool

Parameters

key
Object

key whose mapping is to be removed from the map

value
Object

Returns

the previous value associated with key, or null if there was no mapping for key. (A null return can also indicate that the map previously associated null with key.)

Implements

Attributes

Remarks

Java documentation for java.util.HashMap.remove(java.lang.Object).

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