Condividi tramite


ArraySet Constructors

Definition

Overloads

ArraySet()

Create a new empty ArraySet.

ArraySet(ArraySet)

Create a new ArraySet with the mappings from the given ArraySet.

ArraySet(Object[])

Create a new ArraySet with items from the given array

ArraySet(ICollection)

Create a new ArraySet with items from the given collection.

ArraySet(Int32)

Create a new ArraySet with a given initial capacity.

ArraySet()

Create a new empty ArraySet.

[Android.Runtime.Register(".ctor", "()V", "", ApiSince=23)]
public ArraySet ();
Attributes

Remarks

Create a new empty ArraySet. The default capacity of an array map is 0, and will grow once items are added to it.

Java documentation for android.util.ArraySet.ArraySet().

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

ArraySet(ArraySet)

Create a new ArraySet with the mappings from the given ArraySet.

[Android.Runtime.Register(".ctor", "(Landroid/util/ArraySet;)V", "", ApiSince=23)]
public ArraySet (Android.Util.ArraySet? set);
[<Android.Runtime.Register(".ctor", "(Landroid/util/ArraySet;)V", "", ApiSince=23)>]
new Android.Util.ArraySet : Android.Util.ArraySet -> Android.Util.ArraySet

Parameters

set
ArraySet
Attributes

Remarks

Create a new ArraySet with the mappings from the given ArraySet.

Java documentation for android.util.ArraySet.ArraySet(android.util.ArraySet<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

ArraySet(Object[])

Create a new ArraySet with items from the given array

[Android.Runtime.Register(".ctor", "([Ljava/lang/Object;)V", "", ApiSince=30)]
public ArraySet (Java.Lang.Object[]? array);
[<Android.Runtime.Register(".ctor", "([Ljava/lang/Object;)V", "", ApiSince=30)>]
new Android.Util.ArraySet : Java.Lang.Object[] -> Android.Util.ArraySet

Parameters

array
Object[]
Attributes

Remarks

Create a new ArraySet with items from the given array

Java documentation for android.util.ArraySet.ArraySet(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

ArraySet(ICollection)

Create a new ArraySet with items from the given collection.

[Android.Runtime.Register(".ctor", "(Ljava/util/Collection;)V", "", ApiSince=29)]
public ArraySet (System.Collections.ICollection? set);
[<Android.Runtime.Register(".ctor", "(Ljava/util/Collection;)V", "", ApiSince=29)>]
new Android.Util.ArraySet : System.Collections.ICollection -> Android.Util.ArraySet

Parameters

Attributes

Remarks

Create a new ArraySet with items from the given collection.

Java documentation for android.util.ArraySet.ArraySet(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

ArraySet(Int32)

Create a new ArraySet with a given initial capacity.

[Android.Runtime.Register(".ctor", "(I)V", "", ApiSince=23)]
public ArraySet (int capacity);
[<Android.Runtime.Register(".ctor", "(I)V", "", ApiSince=23)>]
new Android.Util.ArraySet : int -> Android.Util.ArraySet

Parameters

capacity
Int32
Attributes

Remarks

Create a new ArraySet with a given initial capacity.

Java documentation for android.util.ArraySet.ArraySet(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