Companion

object Companion

Contains declarations for holding or building a StrictlyPositiveInt.

Functions

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

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

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

Returns a random StrictlyPositiveInt.

Properties

max
Link copied to clipboard
common
val max: StrictlyPositiveInt

The maximum value of a StrictlyPositiveInt.

min
Link copied to clipboard
common
val min: StrictlyPositiveInt

The minimum value of a StrictlyPositiveInt.