Companion

object Companion

Contains static declarations for the Zero type.

Functions

Link copied to clipboard
@DeprecatedAsErrorSince(version = KotoolsTypesVersion.V4_5_3)
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
@DeprecatedAsErrorSince(version = KotoolsTypesVersion.V4_5_3)
fun fromByteOrNull(number: Byte): Zero?

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

Link copied to clipboard
@ExperimentalSince(version = KotoolsTypesVersion.V4_5_3)
fun orNull(number: Byte): Zero?

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

Link copied to clipboard
@ExperimentalSince(version = KotoolsTypesVersion.V4_5_3)
fun orThrow(number: Byte): Zero

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