StrictlyNegativeInt
@Serializable(with = StrictlyNegativeIntSerializer::class)
Deprecated
Use the kotools.types.StrictlyNegativeInt type instead.
Replace with
import kotools.types.StrictlyNegativeInt
Content copied to clipboard
StrictlyNegativeInt
Content copied to clipboard
Representation of strictly negative 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 StrictlyNegativeInt 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.