IMap.Of Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Of(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)
Returns an unmodifiable map containing ten mappings.
[Android.Runtime.Register("of", "(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map;", "", ApiSince=30)]
[Java.Interop.JavaTypeParameters(new System.String[] { "K", "V" })]
public static System.Collections.IDictionary Of (Java.Lang.Object k1, Java.Lang.Object v1, Java.Lang.Object k2, Java.Lang.Object v2, Java.Lang.Object k3, Java.Lang.Object v3, Java.Lang.Object k4, Java.Lang.Object v4, Java.Lang.Object k5, Java.Lang.Object v5, Java.Lang.Object k6, Java.Lang.Object v6, Java.Lang.Object k7, Java.Lang.Object v7, Java.Lang.Object k8, Java.Lang.Object v8, Java.Lang.Object k9, Java.Lang.Object v9, Java.Lang.Object k10, Java.Lang.Object v10);
[<Android.Runtime.Register("of", "(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map;", "", ApiSince=30)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "K", "V" })>]
static member Of : Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object -> System.Collections.IDictionary
Parameters
- k1
- Object
the first mapping's key
- v1
- Object
the first mapping's value
- k2
- Object
the second mapping's key
- v2
- Object
the second mapping's value
- k3
- Object
the third mapping's key
- v3
- Object
the third mapping's value
- k4
- Object
the fourth mapping's key
- v4
- Object
the fourth mapping's value
- k5
- Object
the fifth mapping's key
- v5
- Object
the fifth mapping's value
- k6
- Object
the sixth mapping's key
- v6
- Object
the sixth mapping's value
- k7
- Object
the seventh mapping's key
- v7
- Object
the seventh mapping's value
- k8
- Object
the eighth mapping's key
- v8
- Object
the eighth mapping's value
- k9
- Object
the ninth mapping's key
- v9
- Object
the ninth mapping's value
- k10
- Object
the tenth mapping's key
- v10
- Object
the tenth mapping's value
Returns
a Map
containing the specified mappings
- Attributes
Remarks
Returns an unmodifiable map containing ten mappings. See Unmodifiable Maps for details.
Added in 9.
Java documentation for java.util.Map.of(K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, 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
Of(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)
Returns an unmodifiable map containing nine mappings.
[Android.Runtime.Register("of", "(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map;", "", ApiSince=30)]
[Java.Interop.JavaTypeParameters(new System.String[] { "K", "V" })]
public static System.Collections.IDictionary Of (Java.Lang.Object k1, Java.Lang.Object v1, Java.Lang.Object k2, Java.Lang.Object v2, Java.Lang.Object k3, Java.Lang.Object v3, Java.Lang.Object k4, Java.Lang.Object v4, Java.Lang.Object k5, Java.Lang.Object v5, Java.Lang.Object k6, Java.Lang.Object v6, Java.Lang.Object k7, Java.Lang.Object v7, Java.Lang.Object k8, Java.Lang.Object v8, Java.Lang.Object k9, Java.Lang.Object v9);
[<Android.Runtime.Register("of", "(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map;", "", ApiSince=30)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "K", "V" })>]
static member Of : Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object -> System.Collections.IDictionary
Parameters
- k1
- Object
the first mapping's key
- v1
- Object
the first mapping's value
- k2
- Object
the second mapping's key
- v2
- Object
the second mapping's value
- k3
- Object
the third mapping's key
- v3
- Object
the third mapping's value
- k4
- Object
the fourth mapping's key
- v4
- Object
the fourth mapping's value
- k5
- Object
the fifth mapping's key
- v5
- Object
the fifth mapping's value
- k6
- Object
the sixth mapping's key
- v6
- Object
the sixth mapping's value
- k7
- Object
the seventh mapping's key
- v7
- Object
the seventh mapping's value
- k8
- Object
the eighth mapping's key
- v8
- Object
the eighth mapping's value
- k9
- Object
the ninth mapping's key
- v9
- Object
the ninth mapping's value
Returns
a Map
containing the specified mappings
- Attributes
Remarks
Returns an unmodifiable map containing nine mappings. See Unmodifiable Maps for details.
Added in 9.
Java documentation for java.util.Map.of(K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, 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
Of(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)
Returns an unmodifiable map containing eight mappings.
[Android.Runtime.Register("of", "(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map;", "", ApiSince=30)]
[Java.Interop.JavaTypeParameters(new System.String[] { "K", "V" })]
public static System.Collections.IDictionary Of (Java.Lang.Object k1, Java.Lang.Object v1, Java.Lang.Object k2, Java.Lang.Object v2, Java.Lang.Object k3, Java.Lang.Object v3, Java.Lang.Object k4, Java.Lang.Object v4, Java.Lang.Object k5, Java.Lang.Object v5, Java.Lang.Object k6, Java.Lang.Object v6, Java.Lang.Object k7, Java.Lang.Object v7, Java.Lang.Object k8, Java.Lang.Object v8);
[<Android.Runtime.Register("of", "(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map;", "", ApiSince=30)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "K", "V" })>]
static member Of : Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object -> System.Collections.IDictionary
Parameters
- k1
- Object
the first mapping's key
- v1
- Object
the first mapping's value
- k2
- Object
the second mapping's key
- v2
- Object
the second mapping's value
- k3
- Object
the third mapping's key
- v3
- Object
the third mapping's value
- k4
- Object
the fourth mapping's key
- v4
- Object
the fourth mapping's value
- k5
- Object
the fifth mapping's key
- v5
- Object
the fifth mapping's value
- k6
- Object
the sixth mapping's key
- v6
- Object
the sixth mapping's value
- k7
- Object
the seventh mapping's key
- v7
- Object
the seventh mapping's value
- k8
- Object
the eighth mapping's key
- v8
- Object
the eighth mapping's value
Returns
a Map
containing the specified mappings
- Attributes
Remarks
Returns an unmodifiable map containing eight mappings. See Unmodifiable Maps for details.
Added in 9.
Java documentation for java.util.Map.of(K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, 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
Of(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)
Returns an unmodifiable map containing seven mappings.
[Android.Runtime.Register("of", "(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map;", "", ApiSince=30)]
[Java.Interop.JavaTypeParameters(new System.String[] { "K", "V" })]
public static System.Collections.IDictionary Of (Java.Lang.Object k1, Java.Lang.Object v1, Java.Lang.Object k2, Java.Lang.Object v2, Java.Lang.Object k3, Java.Lang.Object v3, Java.Lang.Object k4, Java.Lang.Object v4, Java.Lang.Object k5, Java.Lang.Object v5, Java.Lang.Object k6, Java.Lang.Object v6, Java.Lang.Object k7, Java.Lang.Object v7);
[<Android.Runtime.Register("of", "(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map;", "", ApiSince=30)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "K", "V" })>]
static member Of : Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object -> System.Collections.IDictionary
Parameters
- k1
- Object
the first mapping's key
- v1
- Object
the first mapping's value
- k2
- Object
the second mapping's key
- v2
- Object
the second mapping's value
- k3
- Object
the third mapping's key
- v3
- Object
the third mapping's value
- k4
- Object
the fourth mapping's key
- v4
- Object
the fourth mapping's value
- k5
- Object
the fifth mapping's key
- v5
- Object
the fifth mapping's value
- k6
- Object
the sixth mapping's key
- v6
- Object
the sixth mapping's value
- k7
- Object
the seventh mapping's key
- v7
- Object
the seventh mapping's value
Returns
a Map
containing the specified mappings
- Attributes
Remarks
Returns an unmodifiable map containing seven mappings. See Unmodifiable Maps for details.
Added in 9.
Java documentation for java.util.Map.of(K, V, K, V, K, V, K, V, K, V, K, V, K, 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
Of(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)
Returns an unmodifiable map containing six mappings.
[Android.Runtime.Register("of", "(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map;", "", ApiSince=30)]
[Java.Interop.JavaTypeParameters(new System.String[] { "K", "V" })]
public static System.Collections.IDictionary Of (Java.Lang.Object k1, Java.Lang.Object v1, Java.Lang.Object k2, Java.Lang.Object v2, Java.Lang.Object k3, Java.Lang.Object v3, Java.Lang.Object k4, Java.Lang.Object v4, Java.Lang.Object k5, Java.Lang.Object v5, Java.Lang.Object k6, Java.Lang.Object v6);
[<Android.Runtime.Register("of", "(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map;", "", ApiSince=30)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "K", "V" })>]
static member Of : Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object -> System.Collections.IDictionary
Parameters
- k1
- Object
the first mapping's key
- v1
- Object
the first mapping's value
- k2
- Object
the second mapping's key
- v2
- Object
the second mapping's value
- k3
- Object
the third mapping's key
- v3
- Object
the third mapping's value
- k4
- Object
the fourth mapping's key
- v4
- Object
the fourth mapping's value
- k5
- Object
the fifth mapping's key
- v5
- Object
the fifth mapping's value
- k6
- Object
the sixth mapping's key
- v6
- Object
the sixth mapping's value
Returns
a Map
containing the specified mappings
- Attributes
Remarks
Returns an unmodifiable map containing six mappings. See Unmodifiable Maps for details.
Added in 9.
Java documentation for java.util.Map.of(K, V, K, V, K, V, K, V, K, V, K, 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
Of(Object, Object, Object, Object)
Returns an unmodifiable map containing two mappings.
[Android.Runtime.Register("of", "(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map;", "", ApiSince=30)]
[Java.Interop.JavaTypeParameters(new System.String[] { "K", "V" })]
public static System.Collections.IDictionary Of (Java.Lang.Object k1, Java.Lang.Object v1, Java.Lang.Object k2, Java.Lang.Object v2);
[<Android.Runtime.Register("of", "(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map;", "", ApiSince=30)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "K", "V" })>]
static member Of : Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object -> System.Collections.IDictionary
Parameters
- k1
- Object
the first mapping's key
- v1
- Object
the first mapping's value
- k2
- Object
the second mapping's key
- v2
- Object
the second mapping's value
Returns
a Map
containing the specified mappings
- Attributes
Remarks
Returns an unmodifiable map containing two mappings. See Unmodifiable Maps for details.
Added in 9.
Java documentation for java.util.Map.of(K, V, K, 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
Of(Object, Object, Object, Object, Object, Object, Object, Object)
Returns an unmodifiable map containing four mappings.
[Android.Runtime.Register("of", "(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map;", "", ApiSince=30)]
[Java.Interop.JavaTypeParameters(new System.String[] { "K", "V" })]
public static System.Collections.IDictionary Of (Java.Lang.Object k1, Java.Lang.Object v1, Java.Lang.Object k2, Java.Lang.Object v2, Java.Lang.Object k3, Java.Lang.Object v3, Java.Lang.Object k4, Java.Lang.Object v4);
[<Android.Runtime.Register("of", "(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map;", "", ApiSince=30)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "K", "V" })>]
static member Of : Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object -> System.Collections.IDictionary
Parameters
- k1
- Object
the first mapping's key
- v1
- Object
the first mapping's value
- k2
- Object
the second mapping's key
- v2
- Object
the second mapping's value
- k3
- Object
the third mapping's key
- v3
- Object
the third mapping's value
- k4
- Object
the fourth mapping's key
- v4
- Object
the fourth mapping's value
Returns
a Map
containing the specified mappings
- Attributes
Remarks
Returns an unmodifiable map containing four mappings. See Unmodifiable Maps for details.
Added in 9.
Java documentation for java.util.Map.of(K, V, K, V, K, V, K, 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
Of(Object, Object, Object, Object, Object, Object)
Returns an unmodifiable map containing three mappings.
[Android.Runtime.Register("of", "(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map;", "", ApiSince=30)]
[Java.Interop.JavaTypeParameters(new System.String[] { "K", "V" })]
public static System.Collections.IDictionary Of (Java.Lang.Object k1, Java.Lang.Object v1, Java.Lang.Object k2, Java.Lang.Object v2, Java.Lang.Object k3, Java.Lang.Object v3);
[<Android.Runtime.Register("of", "(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map;", "", ApiSince=30)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "K", "V" })>]
static member Of : Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object -> System.Collections.IDictionary
Parameters
- k1
- Object
the first mapping's key
- v1
- Object
the first mapping's value
- k2
- Object
the second mapping's key
- v2
- Object
the second mapping's value
- k3
- Object
the third mapping's key
- v3
- Object
the third mapping's value
Returns
a Map
containing the specified mappings
- Attributes
Remarks
Returns an unmodifiable map containing three mappings. See Unmodifiable Maps for details.
Added in 9.
Java documentation for java.util.Map.of(K, V, K, V, K, 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
Of(Object, Object)
Returns an unmodifiable map containing a single mapping.
[Android.Runtime.Register("of", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map;", "", ApiSince=30)]
[Java.Interop.JavaTypeParameters(new System.String[] { "K", "V" })]
public static System.Collections.IDictionary Of (Java.Lang.Object k1, Java.Lang.Object v1);
[<Android.Runtime.Register("of", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map;", "", ApiSince=30)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "K", "V" })>]
static member Of : Java.Lang.Object * Java.Lang.Object -> System.Collections.IDictionary
Parameters
- k1
- Object
the mapping's key
- v1
- Object
the mapping's value
Returns
a Map
containing the specified mapping
- Attributes
Remarks
Returns an unmodifiable map containing a single mapping. See Unmodifiable Maps for details.
Added in 9.
Java documentation for java.util.Map.of(K, 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
Of()
Returns an unmodifiable map containing zero mappings.
[Android.Runtime.Register("of", "()Ljava/util/Map;", "", ApiSince=30)]
[Java.Interop.JavaTypeParameters(new System.String[] { "K", "V" })]
public static System.Collections.IDictionary Of ();
[<Android.Runtime.Register("of", "()Ljava/util/Map;", "", ApiSince=30)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "K", "V" })>]
static member Of : unit -> System.Collections.IDictionary
Returns
an empty Map
- Attributes
Remarks
Returns an unmodifiable map containing zero mappings. See Unmodifiable Maps for details.
Added in 9.
Java documentation for java.util.Map.of()
.
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
Of(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)
Returns an unmodifiable map containing five mappings.
[Android.Runtime.Register("of", "(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map;", "", ApiSince=30)]
[Java.Interop.JavaTypeParameters(new System.String[] { "K", "V" })]
public static System.Collections.IDictionary Of (Java.Lang.Object k1, Java.Lang.Object v1, Java.Lang.Object k2, Java.Lang.Object v2, Java.Lang.Object k3, Java.Lang.Object v3, Java.Lang.Object k4, Java.Lang.Object v4, Java.Lang.Object k5, Java.Lang.Object v5);
[<Android.Runtime.Register("of", "(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map;", "", ApiSince=30)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "K", "V" })>]
static member Of : Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object * Java.Lang.Object -> System.Collections.IDictionary
Parameters
- k1
- Object
the first mapping's key
- v1
- Object
the first mapping's value
- k2
- Object
the second mapping's key
- v2
- Object
the second mapping's value
- k3
- Object
the third mapping's key
- v3
- Object
the third mapping's value
- k4
- Object
the fourth mapping's key
- v4
- Object
the fourth mapping's value
- k5
- Object
the fifth mapping's key
- v5
- Object
the fifth mapping's value
Returns
a Map
containing the specified mappings
- Attributes
Remarks
Returns an unmodifiable map containing five mappings. See Unmodifiable Maps for details.
Added in 9.
Java documentation for java.util.Map.of(K, V, K, V, K, V, K, V, K, 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.