Package-level declarations

Experimental APIs, subject to change in future versions.

Types

Link copied to clipboard
@Since(version = KotoolsTypesVersion.V4_4_0)
annotation class ExperimentalKotoolsTypesApi

Marks declarations that are still experimental in the API.

Link copied to clipboard
@ExperimentalSince(version = KotoolsTypesVersion.V4_4_0)
class StrictlyPositiveDouble : Comparable<StrictlyPositiveDouble>

Represents a floating-point number of type Double that is greater than zero.

Functions

Link copied to clipboard
@ExperimentalSince(version = KotoolsTypesVersion.V4_4_0)
@JvmName(name = "create")
fun AnyInt(value: Int): AnyInt

Creates an instance of AnyInt with the specified value.

Link copied to clipboard
@ExperimentalSince(version = KotoolsTypesVersion.V4_4_0)
fun Number.toStrictlyPositiveDouble(): Result<StrictlyPositiveDouble>

Returns this number as an encapsulated StrictlyPositiveDouble, which may involve rounding or truncation, or returns an encapsulated IllegalArgumentException if this number is negative.

Link copied to clipboard
@ExperimentalSince(version = KotoolsTypesVersion.V4_4_0)
operator fun AnyInt.unaryMinus(): AnyInt
@ExperimentalSince(version = KotoolsTypesVersion.V4_4_0)
operator fun NegativeInt.unaryMinus(): PositiveInt
@ExperimentalSince(version = KotoolsTypesVersion.V4_4_0)
operator fun NonZeroInt.unaryMinus(): NonZeroInt
@ExperimentalSince(version = KotoolsTypesVersion.V4_4_0)
operator fun PositiveInt.unaryMinus(): NegativeInt
@ExperimentalSince(version = KotoolsTypesVersion.V4_4_0)
operator fun StrictlyNegativeInt.unaryMinus(): StrictlyPositiveInt
@ExperimentalSince(version = KotoolsTypesVersion.V4_4_0)
operator fun StrictlyPositiveInt.unaryMinus(): StrictlyNegativeInt

Returns the negative of this integer number.