StrictlyPositiveInt
@Serializable(with = StrictlyPositiveIntSerializer::class)
Deprecated
Use the kotools.types.StrictlyPositiveInt type instead.
Replace with
import kotools.types.StrictlyPositiveInt
Content copied to clipboard
StrictlyPositiveInt
Content copied to clipboard
Representation of strictly positive integers, excluding zero.
Types
Link copied to clipboard
object Companion
Contains declarations for holding or building a StrictlyPositiveInt.
Link copied to clipboard
Error thrown when creating a StrictlyPositiveInt fails.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Divides this value by the other value, truncating the result to an integer that is closer to zero.
Link copied to clipboard
Returns this value incremented by one. If this value equals -1
, it returns 1
instead. If this value is the maximum, it returns the minimum value instead.
Link copied to clipboard
Returns the negative of this value.