toByte
Returns this number as Byte.
Calling from Kotlin
Here's an example of calling this function from Kotlin code:
val actual: Byte = Zero()
.toByte()
val expected: Byte = 0
assertEquals(expected, actual)
Content copied to clipboard
Calling from Java
Here's an example of calling this function from Java code:
final Zero zero = new Zero();
final byte actual = zero.toByte();
final byte expected = 0;
Assertions.assertEquals(expected, actual);
Content copied to clipboard