Map.CopyOf(IDictionary) Method

Definition

Caution

Use 'Java.Util.IMap.CopyOf'. This class will be removed in a future release.

Returns an <a href="#unmodifiable">unmodifiable Map</a> containing the entries of the given Map.

[Android.Runtime.Register("copyOf", "(Ljava/util/Map;)Ljava/util/Map;", "", ApiSince=31)]
[Java.Interop.JavaTypeParameters(new System.String[] { "K", "V" })]
[System.Obsolete("Use 'Java.Util.IMap.CopyOf'. This class will be removed in a future release.")]
public static System.Collections.IDictionary CopyOf (System.Collections.IDictionary map);
[<Android.Runtime.Register("copyOf", "(Ljava/util/Map;)Ljava/util/Map;", "", ApiSince=31)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "K", "V" })>]
[<System.Obsolete("Use 'Java.Util.IMap.CopyOf'. This class will be removed in a future release.")>]
static member CopyOf : System.Collections.IDictionary -> System.Collections.IDictionary

Parameters

map
IDictionary

a Map from which entries are drawn, must be non-null

Returns

IDictionary

a Map containing the entries of the given Map

Attributes

Remarks

Java documentation for java.util.Map.copyOf(java.util.Map<? extends K, ? extends 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.

Applies to