equals

operator override fun equals(other: Any?): Boolean

Returns true if the other object is an instance of Zero, or returns false otherwise.


Calling from Kotlin

Here's an example of calling this method from Kotlin code:

val first = Zero()
val second = Zero()
val actual: Boolean = first == second // or first.equals(second)
assertTrue(actual)

Calling from Java

Here's an example of calling this method from Java code:

final Zero first = new Zero();
final Zero second = new Zero();
final boolean actual = first.equals(second);
Assertions.assertTrue(actual);