StrictlyNegativeInt

@SinceKotools(project = Project.Types, version = "3.2")
value class StrictlyNegativeInt : ExplicitInt, Comparable<StrictlyNegativeInt>

Representation of strictly negative integers, excluding zero.

Functions

compareTo
Link copied to clipboard
common
open operator override fun compareTo(other: StrictlyNegativeInt): 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.

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

Returns this value as an Int.

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

Returns this value as a String.