LinkedHashSet Constructors

Definition

Overloads

LinkedHashSet()

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

LinkedHashSet(ICollection)

Constructs a new linked hash set with the same elements as the specified collection.

LinkedHashSet(Int32)

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

LinkedHashSet(Int32, Single)

Constructs a new, empty linked hash set with the specified initial capacity and load factor.

LinkedHashSet(IntPtr, JniHandleOwnership)

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

LinkedHashSet()

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

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

Remarks

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

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

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

LinkedHashSet(ICollection)

Constructs a new linked hash set with the same elements as the specified collection.

[Android.Runtime.Register(".ctor", "(Ljava/util/Collection;)V", "")]
public LinkedHashSet (System.Collections.ICollection? c);
[<Android.Runtime.Register(".ctor", "(Ljava/util/Collection;)V", "")>]
new Java.Util.LinkedHashSet : System.Collections.ICollection -> Java.Util.LinkedHashSet

Parameters

c
ICollection

the collection whose elements are to be placed into this set

Attributes

Remarks

Constructs a new linked hash set with the same elements as the specified collection. The linked hash set is created with an initial capacity sufficient to hold the elements in the specified collection and the default load factor (0.75).

Java documentation for java.util.LinkedHashSet.LinkedHashSet(java.util.Collection<? extends E>).

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

LinkedHashSet(Int32)

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

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

Parameters

initialCapacity
Int32

the initial capacity of the LinkedHashSet

Attributes

Remarks

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

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

LinkedHashSet(Int32, Single)

Constructs a new, empty linked hash set with the specified initial capacity and load factor.

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

Parameters

initialCapacity
Int32

the initial capacity of the linked hash set

loadFactor
Single

the load factor of the linked hash set

Attributes

Remarks

Constructs a new, empty linked hash set with the specified initial capacity and load factor.

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

LinkedHashSet(IntPtr, JniHandleOwnership)

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

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

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