NonZeroInt
Deprecated
Use the kotools.types.NonZeroInt type instead.
Replace with
import kotools.types.NonZeroInt
Content copied to clipboard
NonZeroInt
Content copied to clipboard
Representation of integers other than zero.
Types
Link copied to clipboard
object Companion
Contains declarations for holding or building a NonZeroInt.
Link copied to clipboard
Error thrown when creating a NonZeroInt fails.
Functions
Link copied to clipboard
Link copied to clipboard
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.