LangUtils.Equals Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| Equals(Object, Object) |
Compares two objects, treating two |
| Equals(Object[], Object[]) |
Compares two object arrays element by element. |
Equals(Object, Object)
Compares two objects, treating two null values as equal.
[Android.Runtime.Register("equals", "(Ljava/lang/Object;Ljava/lang/Object;)Z", "")]
public static bool Equals(Java.Lang.Object? obj1, Java.Lang.Object? obj2);
[<Android.Runtime.Register("equals", "(Ljava/lang/Object;Ljava/lang/Object;)Z", "")>]
static member Equals : Java.Lang.Object * Java.Lang.Object -> bool
Parameters
- obj1
- Object
The first object to compare.
- obj2
- Object
The second object to compare.
Returns
true if both objects are null or if the first object equals the second object; otherwise, false.
- Attributes
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
Equals(Object[], Object[])
Compares two object arrays element by element.
[Android.Runtime.Register("equals", "([Ljava/lang/Object;[Ljava/lang/Object;)Z", "")]
public static bool Equals(Java.Lang.Object[]? a1, Java.Lang.Object[]? a2);
[<Android.Runtime.Register("equals", "([Ljava/lang/Object;[Ljava/lang/Object;)Z", "")>]
static member Equals : Java.Lang.Object[] * Java.Lang.Object[] -> bool
Parameters
- a1
- Object[]
The first array to compare.
- a2
- Object[]
The second array to compare.
Returns
true if both arrays are null, or if they have equal lengths and corresponding elements are equal; otherwise, false.
- Attributes
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.