Objects.Equals(Object, Object) Method

Definition

Returns true if the arguments are equal to each other and false otherwise.

[Android.Runtime.Register("equals", "(Ljava/lang/Object;Ljava/lang/Object;)Z", "")]
public static bool Equals (Java.Lang.Object? a, Java.Lang.Object? b);
[<Android.Runtime.Register("equals", "(Ljava/lang/Object;Ljava/lang/Object;)Z", "")>]
static member Equals : Java.Lang.Object * Java.Lang.Object -> bool

Parameters

a
Object

an object

b
Object

an object to be compared with a for equality

Returns

Boolean

true if the arguments are equal to each other and false otherwise

Attributes

Remarks

Java documentation for java.util.Objects.equals(java.lang.Object, java.lang.Object).

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