SparseLongArray Constructors

Definition

Overloads

SparseLongArray()

Creates a new SparseLongArray containing no mappings.

SparseLongArray(Int32)

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

SparseLongArray(IntPtr, JniHandleOwnership)

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

SparseLongArray()

Creates a new SparseLongArray containing no mappings.

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

Remarks

Creates a new SparseLongArray containing no mappings.

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

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

SparseLongArray(Int32)

Creates a new SparseLongArray 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 SparseLongArray (int initialCapacity);
[<Android.Runtime.Register(".ctor", "(I)V", "")>]
new Android.Util.SparseLongArray : int -> Android.Util.SparseLongArray

Parameters

initialCapacity
Int32
Attributes

Remarks

Creates a new SparseLongArray 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.SparseLongArray.SparseLongArray(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

SparseLongArray(IntPtr, JniHandleOwnership)

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

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

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