fromByteOrNull
@DeprecatedAsErrorSince(version = KotoolsTypesVersion.V4_5_3)
Deprecated (with error)
Use the 'orNull' method instead.
Replace with
import org.kotools.types.Zero
Content copied to clipboard
Zero.orNull(number)
Content copied to clipboard
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.