hashCode
Returns a hash code value for this number.
Calling from Kotlin
Here's an example of calling this function from Kotlin code:
val first = Zero()
val second = Zero()
val actual: Boolean = first.hashCode() == second.hashCode()
assertTrue(actual)
Content copied to clipboard
Calling from Java
Here's an example of calling this function from Java code:
final int first = new Zero()
.hashCode();
final int second = new Zero()
.hashCode();
Assertions.assertEquals(first, second);
Content copied to clipboard