Language

Attributes.IMap.ContainsKey(Object) Method

Definition

Returns true if this map contains a mapping for the specified key.

bool IMap.ContainsKey(Java.Lang.Object? key);
abstract member Java.Util.IMap.ContainsKey : Java.Lang.Object -> bool
override this.Java.Util.IMap.ContainsKey : Java.Lang.Object -> bool

Parameters

key
Object

key whose presence in this map is to be tested

Returns

true if this map contains a mapping for the specified key

Implements

Remarks

Returns true if this map contains a mapping for the specified key. More formally, returns true if and only if this map contains a mapping for a key k such that Objects.equals(key, k). (There can be at most one such mapping.)

Java reference for java.util.Map.containsKey.

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