fromByteOrNull

@DeprecatedAsErrorSince(version = KotoolsTypesVersion.V4_5_3)
fun fromByteOrNull(number: Byte): Zero?

Deprecated (with error)

Use the 'orNull' method instead.

Replace with

import org.kotools.types.Zero
Zero.orNull(number)

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

This method is not available from Java code due to its non-explicit support for nullable types.

See the fromByte method for throwing an exception instead of returning null in case of invalid number.