共用方式為


Hashtable Constructors

Definition

Overloads

Hashtable()

Constructs a new, empty hashtable with a default initial capacity (11) and load factor (0.

Hashtable(IDictionary)

Constructs a new hashtable with the same mappings as the given Map.

Hashtable(Int32)

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

Hashtable(Int32, Single)

Constructs a new, empty hashtable with the specified initial capacity and the specified load factor.

Hashtable(IntPtr, JniHandleOwnership)

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

Hashtable()

Constructs a new, empty hashtable with a default initial capacity (11) and load factor (0.

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

Remarks

Constructs a new, empty hashtable with a default initial capacity (11) and load factor (0.75).

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

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

Hashtable(IDictionary)

Constructs a new hashtable with the same mappings as the given Map.

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

Parameters

t
IDictionary

the map whose mappings are to be placed in this map.

Attributes

Remarks

Constructs a new hashtable with the same mappings as the given Map. The hashtable is created with an initial capacity sufficient to hold the mappings in the given Map and a default load factor (0.75).

Added in 1.2.

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

Hashtable(Int32)

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

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

Parameters

initialCapacity
Int32

the initial capacity of the hashtable.

Attributes

Remarks

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

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

Hashtable(Int32, Single)

Constructs a new, empty hashtable with the specified initial capacity and the specified load factor.

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

Parameters

initialCapacity
Int32

the initial capacity of the hashtable.

loadFactor
Single

the load factor of the hashtable.

Attributes

Remarks

Constructs a new, empty hashtable with the specified initial capacity and the specified load factor.

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

Hashtable(IntPtr, JniHandleOwnership)

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

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

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