Language

Attributes.IMap.ContainsValue(Object) Method

Definition

Returns true if this map maps one or more keys to the specified value.

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

Parameters

value
Object

value whose presence in this map is to be tested

Returns

true if this map maps one or more keys to the specified value

Implements

Remarks

Returns true if this map maps one or more keys to the specified value. More formally, returns true if and only if this map contains at least one mapping to a value v such that Objects.equals(value, v). This operation will probably require time linear in the map size for most implementations of the Map interface.

Java reference for java.util.Map.containsValue.

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