toLong
Returns this number as Long.
Calling from Kotlin
Here's an example of calling this method from Kotlin code:
val actual: Long = Zero()
.toLong()
val expected = 0L
assertEquals(expected, actual)
Content copied to clipboard
Calling from Java
Here's an example of calling this method from Java code:
final long actual = new Zero()
.toLong();
final long expected = 0;
Assertions.assertEquals(expected, actual);
Content copied to clipboard