Compartilhar via


IMap.ContainsValue(Object) Method

Definition

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

[Android.Runtime.Register("containsValue", "(Ljava/lang/Object;)Z", "GetContainsValue_Ljava_lang_Object_Handler:Java.Util.IMapInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool ContainsValue (Java.Lang.Object? value);
[<Android.Runtime.Register("containsValue", "(Ljava/lang/Object;)Z", "GetContainsValue_Ljava_lang_Object_Handler:Java.Util.IMapInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member 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

Attributes

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 documentation for java.util.Map.containsValue(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