Share via


SparseArray.ContentEquals(SparseArray) Method

Definition

Compares the contents of this SparseArray to the specified SparseArray.

[Android.Runtime.Register("contentEquals", "(Landroid/util/SparseArray;)Z", "GetContentEquals_Landroid_util_SparseArray_Handler", ApiSince=31)]
public virtual bool ContentEquals (Android.Util.SparseArray? other);
[<Android.Runtime.Register("contentEquals", "(Landroid/util/SparseArray;)Z", "GetContentEquals_Landroid_util_SparseArray_Handler", ApiSince=31)>]
abstract member ContentEquals : Android.Util.SparseArray -> bool
override this.ContentEquals : Android.Util.SparseArray -> bool

Parameters

other
SparseArray

Returns

Attributes

Remarks

Compares the contents of this SparseArray to the specified SparseArray.

For backwards compatibility reasons, Object#equals(Object) cannot be implemented, so this serves as a manually invoked alternative.

Java documentation for android.util.SparseArray.contentEquals(android.util.SparseArray<?>).

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