Enum.Equals(Object) Method

Definition

Returns true if the specified object is equal to this enum constant.

[Android.Runtime.Register("equals", "(Ljava/lang/Object;)Z", "")]
public override sealed bool Equals (Java.Lang.Object? other);
[<Android.Runtime.Register("equals", "(Ljava/lang/Object;)Z", "")>]
override this.Equals : Java.Lang.Object -> bool

Parameters

other
Object

the object to be compared for equality with this object.

Returns

true if the specified object is equal to this enum constant.

Attributes

Remarks

Returns true if the specified object is equal to this enum constant.

Java documentation for java.lang.Enum.equals(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