# equals(AndroidJavaObject)

> The equivalent of the java.lang.Object equals() method.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.AndroidJNIModule

```csharp
public virtual bool equals(AndroidJavaObject obj)
```

### Parameters

**** (\[AndroidJavaObject]\(/engine/6000.0/script-reference/unityengine/androidjavaobject)):&#x20;

### Returns

| Type                                                          | Description                                                     |
| ------------------------------------------------------------- | --------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true when the objects are equal and false if otherwise. |
