fromByte
Deprecated (with error)
Use the 'orThrow' method instead.
Replace with
import org.kotools.types.Zero
Content copied to clipboard
Zero.orThrow(number)
Content copied to clipboard
Creates an instance of Zero from the specified number, or throws an IllegalArgumentException if the number is other than zero.
See the fromByteOrNull method for returning null
instead of throwing an exception in case of invalid number.