Taal

LinkedHashMap.NewLinkedHashMap(Int32) Method

Definition

Creates a new, empty, insertion-ordered LinkedHashMap suitable for the expected number of mappings.

[Android.Runtime.Register("newLinkedHashMap", "(I)Ljava/util/LinkedHashMap;", "", ApiSince=35)]
[Java.Interop.JavaTypeParameters(new System.String[] { "K", "V" })]
public static Java.Util.LinkedHashMap? NewLinkedHashMap(int numMappings);
[<Android.Runtime.Register("newLinkedHashMap", "(I)Ljava/util/LinkedHashMap;", "", ApiSince=35)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "K", "V" })>]
static member NewLinkedHashMap : int -> Java.Util.LinkedHashMap

Parameters

numMappings
Int32

the expected number of mappings

Returns

the newly created map

Attributes

Remarks

Creates a new, empty, insertion-ordered LinkedHashMap suitable for the expected number of mappings. The returned map uses the default load factor of 0.75, and its initial capacity is generally large enough so that the expected number of mappings can be added without resizing the map.

Java reference for java.util.LinkedHashMap.newLinkedHashMap.

Applies to