Companion

object Companion

Contains declarations for holding or building a NonZeroInt.

Functions

orNull
Link copied to clipboard
common
infix fun orNull(value: Int): NonZeroInt?

Returns the value as a NonZeroInt, or returns null if the value equals 0.

random
Link copied to clipboard
common
@SinceKotools(project = Project.Types, version = "3.0")
fun random(): NonZeroInt

Returns a random NonZeroInt.

Properties

max
Link copied to clipboard
common
val max: NonZeroInt

The maximum value of a NonZeroInt.

min
Link copied to clipboard
common
val min: NonZeroInt

The minimum value of a NonZeroInt.