다음을 통해 공유


IdentityHashMap Constructors

Definition

Overloads

IdentityHashMap()

Constructs a new, empty identity hash map with a default expected maximum size (21).

IdentityHashMap(IDictionary)

Constructs a new identity hash map containing the keys-value mappings in the specified map.

IdentityHashMap(Int32)

Constructs a new, empty map with the specified expected maximum size.

IdentityHashMap(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

IdentityHashMap()

Constructs a new, empty identity hash map with a default expected maximum size (21).

[Android.Runtime.Register(".ctor", "()V", "")]
public IdentityHashMap ();
Attributes

Remarks

Constructs a new, empty identity hash map with a default expected maximum size (21).

Java documentation for java.util.IdentityHashMap.IdentityHashMap().

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

IdentityHashMap(IDictionary)

Constructs a new identity hash map containing the keys-value mappings in the specified map.

[Android.Runtime.Register(".ctor", "(Ljava/util/Map;)V", "")]
public IdentityHashMap (System.Collections.IDictionary? m);
[<Android.Runtime.Register(".ctor", "(Ljava/util/Map;)V", "")>]
new Java.Util.IdentityHashMap : System.Collections.IDictionary -> Java.Util.IdentityHashMap

Parameters

m
IDictionary

the map whose mappings are to be placed into this map

Attributes

Remarks

Java documentation for java.util.IdentityHashMap.IdentityHashMap(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

IdentityHashMap(Int32)

Constructs a new, empty map with the specified expected maximum size.

[Android.Runtime.Register(".ctor", "(I)V", "")]
public IdentityHashMap (int expectedMaxSize);
[<Android.Runtime.Register(".ctor", "(I)V", "")>]
new Java.Util.IdentityHashMap : int -> Java.Util.IdentityHashMap

Parameters

expectedMaxSize
Int32

the expected maximum size of the map

Attributes

Remarks

Constructs a new, empty map with the specified expected maximum size. Putting more than the expected number of key-value mappings into the map may cause the internal data structure to grow, which may be somewhat time-consuming.

Java documentation for java.util.IdentityHashMap.IdentityHashMap(.*int).

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

IdentityHashMap(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected IdentityHashMap (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Util.IdentityHashMap : nativeint * Android.Runtime.JniHandleOwnership -> Java.Util.IdentityHashMap

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

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.

Applies to