Share via


LongSparseArray Constructors

Definition

Overloads

LongSparseArray()

Creates a new LongSparseArray containing no mappings.

LongSparseArray(Int32)

Creates a new LongSparseArray containing no mappings that will not require any additional memory allocation to store the specified number of mappings.

LongSparseArray(IntPtr, JniHandleOwnership)

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

LongSparseArray()

Creates a new LongSparseArray containing no mappings.

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

Remarks

Creates a new LongSparseArray containing no mappings.

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

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

LongSparseArray(Int32)

Creates a new LongSparseArray containing no mappings that will not require any additional memory allocation to store the specified number of mappings.

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

Parameters

initialCapacity
Int32
Attributes

Remarks

Creates a new LongSparseArray containing no mappings that will not require any additional memory allocation to store the specified number of mappings. If you supply an initial capacity of 0, the sparse array will be initialized with a light-weight representation not requiring any additional array allocations.

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

LongSparseArray(IntPtr, JniHandleOwnership)

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

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

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