다음을 통해 공유


IMap.CopyOf(IDictionary) Method

Definition

Returns an unmodifiable Map 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" })]
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" })>]
static member CopyOf : System.Collections.IDictionary -> System.Collections.IDictionary

Parameters

map
IDictionary

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

Returns

a Map containing the entries of the given Map

Attributes

Remarks

Returns an unmodifiable Map containing the entries of the given Map. The given Map must not be null, and it must not contain any null keys or values. If the given Map is subsequently modified, the returned Map will not reflect such modifications.

Added in 10.

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