Companion

object Companion

Contains declarations for holding or building a PositiveInt.

Functions

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

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

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

Returns a random PositiveInt.

Properties

max
Link copied to clipboard
common
val max: PositiveInt

The maximum value of a PositiveInt.

min
Link copied to clipboard
common
val min: PositiveInt

The minimum value of a PositiveInt.