다음을 통해 공유


LinkedHashMap Constructors

Definition

Overloads

LinkedHashMap()

Constructs an empty insertion-ordered LinkedHashMap instance with the default initial capacity (16) and load factor (0.

LinkedHashMap(IDictionary)

Constructs an insertion-ordered LinkedHashMap instance with the same mappings as the specified map.

LinkedHashMap(Int32)

Constructs an empty insertion-ordered LinkedHashMap instance with the specified initial capacity and a default load factor (0.

LinkedHashMap(Int32, Single)

Constructs an empty insertion-ordered LinkedHashMap instance with the specified initial capacity and load factor.

LinkedHashMap(IntPtr, JniHandleOwnership)

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

LinkedHashMap(Int32, Single, Boolean)

Constructs an empty LinkedHashMap instance with the specified initial capacity, load factor and ordering mode.

LinkedHashMap()

Constructs an empty insertion-ordered LinkedHashMap instance with the default initial capacity (16) and load factor (0.

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

Remarks

Constructs an empty insertion-ordered LinkedHashMap instance with the default initial capacity (16) and load factor (0.75).

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

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

LinkedHashMap(IDictionary)

Constructs an insertion-ordered LinkedHashMap instance with the same mappings as the specified map.

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

Parameters

m
IDictionary

the map whose mappings are to be placed in this map

Attributes

Remarks

Constructs an insertion-ordered LinkedHashMap instance with the same mappings as the specified map. The LinkedHashMap instance is created with a default load factor (0.75) and an initial capacity sufficient to hold the mappings in the specified map.

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

LinkedHashMap(Int32)

Constructs an empty insertion-ordered LinkedHashMap instance with the specified initial capacity and a default load factor (0.

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

Parameters

initialCapacity
Int32

the initial capacity

Attributes

Exceptions

when the capacity is less than zero.

Remarks

Constructs an empty insertion-ordered LinkedHashMap instance with the specified initial capacity and a default load factor (0.75).

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

LinkedHashMap(Int32, Single)

Constructs an empty insertion-ordered LinkedHashMap instance with the specified initial capacity and load factor.

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

Parameters

initialCapacity
Int32

the initial capacity

loadFactor
Single

the load factor

Attributes

Exceptions

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

Remarks

Constructs an empty insertion-ordered LinkedHashMap instance with the specified initial capacity and load factor.

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

LinkedHashMap(IntPtr, JniHandleOwnership)

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

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

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

LinkedHashMap(Int32, Single, Boolean)

Constructs an empty LinkedHashMap instance with the specified initial capacity, load factor and ordering mode.

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

Parameters

initialCapacity
Int32

the initial capacity

loadFactor
Single

the load factor

accessOrder
Boolean

the ordering mode - true for access-order, false for insertion-order

Attributes

Exceptions

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

Remarks

Constructs an empty LinkedHashMap instance with the specified initial capacity, load factor and ordering mode.

Java documentation for java.util.LinkedHashMap.LinkedHashMap(int, float, boolean).

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