Companion

object Companion

Contains static declarations for the Zero type.

Functions

Link copied to clipboard
fun fromByte(number: Byte): Zero

Creates an instance of Zero from the specified number, or throws an IllegalArgumentException if the number is other than zero.

Link copied to clipboard
fun fromByteOrNull(number: Byte): Zero?

Creates an instance of Zero from the specified number, or returns null if calling the fromByte function with the number throws an IllegalArgumentException.