WeakHashMap Constructors

Definition

Overloads

WeakHashMap()

Constructs a new, empty WeakHashMap with the default initial capacity (16) and load factor (0.

WeakHashMap(IDictionary)

Constructs a new WeakHashMap with the same mappings as the specified map.

WeakHashMap(Int32)

Constructs a new, empty WeakHashMap with the given initial capacity and the default load factor (0.

WeakHashMap(Int32, Single)

Constructs a new, empty WeakHashMap with the given initial capacity and the given load factor.

WeakHashMap(IntPtr, JniHandleOwnership)

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

WeakHashMap()

Constructs a new, empty WeakHashMap with the default initial capacity (16) and load factor (0.

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

Remarks

Constructs a new, empty WeakHashMap with the default initial capacity (16) and load factor (0.75).

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

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

WeakHashMap(IDictionary)

Constructs a new WeakHashMap with the same mappings as the specified map.

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

Parameters

m
IDictionary

the map whose mappings are to be placed in this map

Attributes

Remarks

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

WeakHashMap(Int32)

Constructs a new, empty WeakHashMap with the given initial capacity and the default load factor (0.

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

Parameters

initialCapacity
Int32

The initial capacity of the WeakHashMap

Attributes

Exceptions

if the capacity is less than zero.

Remarks

Constructs a new, empty WeakHashMap with the given initial capacity and the default load factor (0.75).

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

WeakHashMap(Int32, Single)

Constructs a new, empty WeakHashMap with the given initial capacity and the given load factor.

[Android.Runtime.Register(".ctor", "(IF)V", "")]
public WeakHashMap (int initialCapacity, float loadFactor);
[<Android.Runtime.Register(".ctor", "(IF)V", "")>]
new Java.Util.WeakHashMap : int * single -> Java.Util.WeakHashMap

Parameters

initialCapacity
Int32

The initial capacity of the WeakHashMap

loadFactor
Single

The load factor of the WeakHashMap

Attributes

Exceptions

if the capacity is less than zero or the load factor is less or equal to zero.

Remarks

Constructs a new, empty WeakHashMap with the given initial capacity and the given load factor.

Java documentation for java.util.WeakHashMap.WeakHashMap(.*int, .*float).

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

WeakHashMap(IntPtr, JniHandleOwnership)

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

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

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