NegativeInt

@Serializable(with = NegativeIntSerializer::class)
value class NegativeInt : ExplicitInt, Comparable<NegativeInt>

Representation of negative integers, including zero.

Functions

Link copied to clipboard
open operator override fun compareTo(other: NegativeInt): Int

Compares this integer with the other one for order. Returns zero if this integer equals the other one, a negative number if it's less than the other one, or a positive number if it's greater than the other one.

Link copied to clipboard
open override fun toInt(): Int

Returns this value as an Int.

Link copied to clipboard
open override fun toString(): String

Returns this value as a String.