EnumMap Constructors
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
EnumMap(Class) |
Creates an empty enum map with the specified key type. |
EnumMap(EnumMap) |
Creates an enum map with the same key type as the specified enum map, initially containing the same mappings (if any). |
EnumMap(IDictionary) |
Creates an enum map initialized from the specified map. |
EnumMap(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
EnumMap(Class)
Creates an empty enum map with the specified key type.
[Android.Runtime.Register(".ctor", "(Ljava/lang/Class;)V", "")]
public EnumMap (Java.Lang.Class? keyType);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/Class;)V", "")>]
new Java.Util.EnumMap : Java.Lang.Class -> Java.Util.EnumMap
Parameters
- keyType
- Class
the class object of the key type for this enum map
- Attributes
Remarks
Java documentation for java.util.EnumMap.EnumMap(java.lang.Class<K>)
.
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
EnumMap(EnumMap)
Creates an enum map with the same key type as the specified enum map, initially containing the same mappings (if any).
[Android.Runtime.Register(".ctor", "(Ljava/util/EnumMap;)V", "")]
public EnumMap (Java.Util.EnumMap? m);
[<Android.Runtime.Register(".ctor", "(Ljava/util/EnumMap;)V", "")>]
new Java.Util.EnumMap : Java.Util.EnumMap -> Java.Util.EnumMap
Parameters
- m
- EnumMap
the enum map from which to initialize this enum map
- Attributes
Remarks
Java documentation for java.util.EnumMap.EnumMap(java.util.EnumMap<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
EnumMap(IDictionary)
Creates an enum map initialized from the specified map.
[Android.Runtime.Register(".ctor", "(Ljava/util/Map;)V", "")]
public EnumMap (System.Collections.IDictionary? m);
[<Android.Runtime.Register(".ctor", "(Ljava/util/Map;)V", "")>]
new Java.Util.EnumMap : System.Collections.IDictionary -> Java.Util.EnumMap
Parameters
the map from which to initialize this enum map
- Attributes
Remarks
Java documentation for java.util.EnumMap.EnumMap(java.util.Map<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
EnumMap(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected EnumMap (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Util.EnumMap : nativeint * Android.Runtime.JniHandleOwnership -> Java.Util.EnumMap
Parameters
- transfer
- JniHandleOwnership
A JniHandleOwnershipindicating how to handle javaReference
Remarks
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.