Short

expect class Short : Number, Comparable<Short> (source)

Represents a 16-bit signed integer.

Since Kotlin

1.0
actual class Short : Number, Comparable<Short> (source)

Represents a 16-bit signed integer.

Since Kotlin

1.1

Represents a 16-bit signed integer. On the JVM, non-nullable values of this type are represented as values of the primitive type short.

Since Kotlin

1.0
actual class Short : Number, Comparable<Short> (source)

Represents a 16-bit signed integer.

Since Kotlin

1.3
actual class Short : Number, Comparable<Short> (source)

Represents a 16-bit signed integer.

Since Kotlin

1.8
actual class Short : Number, Comparable<Short> (source)

Represents a 16-bit signed integer.

Since Kotlin

1.8

Types

Link copied to clipboard
expect object Companion
Since Kotlin 1.0
actual object Companion
Since Kotlin 1.1
object Companion
Since Kotlin 1.0
actual object Companion
Since Kotlin 1.3
actual object Companion
Since Kotlin 1.8
actual object Companion
Since Kotlin 1.8

Functions

Link copied to clipboard
infix inline fun Short.and(other: Short): Short

Performs a bitwise AND operation between the two values.

Since Kotlin 1.1
Link copied to clipboard
fun Short.coerceAtLeast(minimumValue: Short): Short

Ensures that this value is not less than the specified minimumValue.

Since Kotlin 1.0
Link copied to clipboard
fun Short.coerceAtMost(maximumValue: Short): Short

Ensures that this value is not greater than the specified maximumValue.

Since Kotlin 1.0
Link copied to clipboard
fun Short.coerceIn(minimumValue: Short, maximumValue: Short): Short

Ensures that this value lies in the specified range minimumValue..maximumValue.

Since Kotlin 1.0
Link copied to clipboard
expect operator fun compareTo(other: Byte): Int
expect operator fun compareTo(other: Double): Int
expect operator fun compareTo(other: Float): Int
expect operator fun compareTo(other: Int): Int
expect operator fun compareTo(other: Long): Int
expect open operator override fun compareTo(other: Short): Int

Compares this value with the specified value for order. Returns zero if this value is equal to the specified other value, a negative number if it's less than other, or a positive number if it's greater than other.

Since Kotlin 1.0
actual operator fun compareTo(other: Byte): Int
actual operator fun compareTo(other: Double): Int
actual operator fun compareTo(other: Float): Int
actual operator fun compareTo(other: Int): Int
actual operator fun compareTo(other: Long): Int
actual open operator override fun compareTo(other: Short): Int

Compares this value with the specified value for order. Returns zero if this value is equal to the specified other value, a negative number if it's less than other, or a positive number if it's greater than other.

Since Kotlin 1.1
operator fun compareTo(other: Byte): Int
operator fun compareTo(other: Double): Int
operator fun compareTo(other: Float): Int
operator fun compareTo(other: Int): Int
operator fun compareTo(other: Long): Int
open operator override fun compareTo(other: Short): Int

Compares this value with the specified value for order. Returns zero if this value is equal to the specified other value, a negative number if it's less than other, or a positive number if it's greater than other.

Since Kotlin 1.0
actual inline operator fun compareTo(other: Byte): Int
actual inline operator fun compareTo(other: Double): Int
actual inline operator fun compareTo(other: Float): Int
actual inline operator fun compareTo(other: Int): Int
actual inline operator fun compareTo(other: Long): Int
actual open operator external override fun compareTo(other: Short): Int

Compares this value with the specified value for order. Returns zero if this value is equal to the specified other value, a negative number if it's less than other, or a positive number if it's greater than other.

Since Kotlin 1.3
actual inline operator fun compareTo(other: Byte): Int
actual inline operator fun compareTo(other: Double): Int
actual inline operator fun compareTo(other: Float): Int
actual inline operator fun compareTo(other: Int): Int
actual inline operator fun compareTo(other: Long): Int
actual open inline operator override fun compareTo(other: Short): Int

Compares this value with the specified value for order. Returns zero if this value is equal to the specified other value, a negative number if it's less than other, or a positive number if it's greater than other.

Since Kotlin 1.8
actual inline operator fun compareTo(other: Byte): Int
actual inline operator fun compareTo(other: Double): Int
actual inline operator fun compareTo(other: Float): Int
actual inline operator fun compareTo(other: Int): Int
actual inline operator fun compareTo(other: Long): Int
actual open inline operator override fun compareTo(other: Short): Int

Compares this value with the specified value for order. Returns zero if this value is equal to the specified other value, a negative number if it's less than other, or a positive number if it's greater than other.

Since Kotlin 1.8
Link copied to clipboard
infix inline fun <T> Comparable<T>.compareTo(other: T): Int

Compares this object with the specified object for order. Returns zero if this object is equal to the specified other object, a negative number if it's less than other, or a positive number if it's greater than other.

Since Kotlin 1.6
Link copied to clipboard
inline external fun <R : Any> Short.convert(): R
Since Kotlin 1.3
Link copied to clipboard

Counts the number of consecutive most significant bits that are zero in the binary representation of this Short number.

Since Kotlin 1.4
Link copied to clipboard
inline fun Short.countOneBits(): Int

Counts the number of set bits in the binary representation of this Short number.

Since Kotlin 1.4
Link copied to clipboard

Counts the number of consecutive least significant bits that are zero in the binary representation of this Short number.

Since Kotlin 1.4
Link copied to clipboard
expect operator fun dec(): Short

Returns this value decremented by one.

Since Kotlin 1.0
actual operator fun dec(): Short

Returns this value decremented by one.

Since Kotlin 1.1
operator fun dec(): Short

Returns this value decremented by one.

Since Kotlin 1.0
actual operator external fun dec(): Short

Returns this value decremented by one.

Since Kotlin 1.3
actual inline operator fun dec(): Short

Returns this value decremented by one.

Since Kotlin 1.8
actual inline operator fun dec(): Short

Returns this value decremented by one.

Since Kotlin 1.8
Link copied to clipboard
expect operator fun div(other: Byte): Int
expect operator fun div(other: Int): Int
expect operator fun div(other: Long): Long
expect operator fun div(other: Short): Int

Divides this value by the other value, truncating the result to an integer that is closer to zero.

Since Kotlin 1.0
expect operator fun div(other: Double): Double
expect operator fun div(other: Float): Float

Divides this value by the other value.

Since Kotlin 1.0
actual operator fun div(other: Byte): Int
actual operator fun div(other: Int): Int
actual operator fun div(other: Long): Long
actual operator fun div(other: Short): Int

Divides this value by the other value, truncating the result to an integer that is closer to zero.

Since Kotlin 1.1
actual operator fun div(other: Double): Double
actual operator fun div(other: Float): Float

Divides this value by the other value.

Since Kotlin 1.1
operator fun div(other: Byte): Int
operator fun div(other: Int): Int
operator fun div(other: Long): Long
operator fun div(other: Short): Int

Divides this value by the other value, truncating the result to an integer that is closer to zero.

Since Kotlin 1.0
operator fun div(other: Double): Double
operator fun div(other: Float): Float

Divides this value by the other value.

Since Kotlin 1.0
actual inline operator fun div(other: Byte): Int
actual inline operator fun div(other: Int): Int
actual inline operator fun div(other: Long): Long
actual inline operator fun div(other: Short): Int

Divides this value by the other value, truncating the result to an integer that is closer to zero.

Since Kotlin 1.3
actual inline operator fun div(other: Double): Double
actual inline operator fun div(other: Float): Float

Divides this value by the other value.

Since Kotlin 1.3
actual inline operator fun div(other: Byte): Int
actual inline operator fun div(other: Int): Int
actual inline operator fun div(other: Long): Long
actual inline operator fun div(other: Short): Int

Divides this value by the other value, truncating the result to an integer that is closer to zero.

Since Kotlin 1.8
actual inline operator fun div(other: Double): Double
actual inline operator fun div(other: Float): Float

Divides this value by the other value.

Since Kotlin 1.8
actual inline operator fun div(other: Byte): Int
actual inline operator fun div(other: Int): Int
actual inline operator fun div(other: Long): Long
actual inline operator fun div(other: Short): Int

Divides this value by the other value, truncating the result to an integer that is closer to zero.

Since Kotlin 1.8
actual inline operator fun div(other: Double): Double
actual inline operator fun div(other: Float): Float

Divides this value by the other value.

Since Kotlin 1.8
Link copied to clipboard
infix fun Short.downTo(to: Int): IntProgression

Returns a progression from this value down to the specified to value with the step -1.

Since Kotlin 1.0
Link copied to clipboard
expect open operator override fun equals(other: Any?): Boolean
Since Kotlin 1.0
actual open operator override fun equals(other: Any?): Boolean
Since Kotlin 1.1
open operator override fun equals(other: Any?): Boolean
Since Kotlin 1.0
actual open operator override fun equals(other: Any?): Boolean
Since Kotlin 1.3
actual open operator override fun equals(other: Any?): Boolean
Since Kotlin 1.8
actual open operator override fun equals(other: Any?): Boolean
Since Kotlin 1.8
Link copied to clipboard
inline fun Short.floorDiv(other: Byte): Int
inline fun Short.floorDiv(other: Int): Int
inline fun Short.floorDiv(other: Long): Long
inline fun Short.floorDiv(other: Short): Int

Divides this value by the other value, flooring the result to an integer that is closer to negative infinity.

Since Kotlin 1.5
Link copied to clipboard
expect open override fun hashCode(): Int
Since Kotlin 1.0
actual open override fun hashCode(): Int
Since Kotlin 1.1
actual open override fun hashCode(): Int
Since Kotlin 1.3
actual open override fun hashCode(): Int
Since Kotlin 1.8
actual open override fun hashCode(): Int
Since Kotlin 1.8
Link copied to clipboard
expect operator fun inc(): Short

Returns this value incremented by one.

Since Kotlin 1.0
actual operator fun inc(): Short

Returns this value incremented by one.

Since Kotlin 1.1
operator fun inc(): Short

Returns this value incremented by one.

Since Kotlin 1.0
actual operator external fun inc(): Short

Returns this value incremented by one.

Since Kotlin 1.3
actual inline operator fun inc(): Short

Returns this value incremented by one.

Since Kotlin 1.8
actual inline operator fun inc(): Short

Returns this value incremented by one.

Since Kotlin 1.8
Link copied to clipboard
inline fun Short.inv(): Short

Inverts the bits in this value.

Since Kotlin 1.1
Link copied to clipboard
expect operator fun minus(other: Byte): Int
expect operator fun minus(other: Double): Double
expect operator fun minus(other: Float): Float
expect operator fun minus(other: Int): Int
expect operator fun minus(other: Long): Long
expect operator fun minus(other: Short): Int

Subtracts the other value from this value.

Since Kotlin 1.0
actual operator fun minus(other: Byte): Int
actual operator fun minus(other: Double): Double
actual operator fun minus(other: Float): Float
actual operator fun minus(other: Int): Int
actual operator fun minus(other: Long): Long
actual operator fun minus(other: Short): Int

Subtracts the other value from this value.

Since Kotlin 1.1
operator fun minus(other: Byte): Int
operator fun minus(other: Double): Double
operator fun minus(other: Float): Float
operator fun minus(other: Int): Int
operator fun minus(other: Long): Long
operator fun minus(other: Short): Int

Subtracts the other value from this value.

Since Kotlin 1.0
actual inline operator fun minus(other: Byte): Int
actual inline operator fun minus(other: Double): Double
actual inline operator fun minus(other: Float): Float
actual inline operator fun minus(other: Int): Int
actual inline operator fun minus(other: Long): Long
actual inline operator fun minus(other: Short): Int

Subtracts the other value from this value.

Since Kotlin 1.3
actual inline operator fun minus(other: Byte): Int
actual inline operator fun minus(other: Double): Double
actual inline operator fun minus(other: Float): Float
actual inline operator fun minus(other: Int): Int
actual inline operator fun minus(other: Long): Long
actual inline operator fun minus(other: Short): Int

Subtracts the other value from this value.

Since Kotlin 1.8
actual inline operator fun minus(other: Byte): Int
actual inline operator fun minus(other: Double): Double
actual inline operator fun minus(other: Float): Float
actual inline operator fun minus(other: Int): Int
actual inline operator fun minus(other: Long): Long
actual inline operator fun minus(other: Short): Int

Subtracts the other value from this value.

Since Kotlin 1.8
Link copied to clipboard
inline fun Short.mod(other: Byte): Byte
inline fun Short.mod(other: Int): Int
inline fun Short.mod(other: Long): Long
inline fun Short.mod(other: Short): Short

Calculates the remainder of flooring division of this value (dividend) by the other value (divisor).

Since Kotlin 1.5
Link copied to clipboard
inline external fun <R : Number> Number.narrow(): R
Since Kotlin 1.3
Link copied to clipboard
infix inline fun Short.or(other: Short): Short

Performs a bitwise OR operation between the two values.

Since Kotlin 1.1
Link copied to clipboard
expect operator fun plus(other: Byte): Int
expect operator fun plus(other: Double): Double
expect operator fun plus(other: Float): Float
expect operator fun plus(other: Int): Int
expect operator fun plus(other: Long): Long
expect operator fun plus(other: Short): Int

Adds the other value to this value.

Since Kotlin 1.0
actual operator fun plus(other: Byte): Int
actual operator fun plus(other: Double): Double
actual operator fun plus(other: Float): Float
actual operator fun plus(other: Int): Int
actual operator fun plus(other: Long): Long
actual operator fun plus(other: Short): Int

Adds the other value to this value.

Since Kotlin 1.1
operator fun plus(other: Byte): Int
operator fun plus(other: Double): Double
operator fun plus(other: Float): Float
operator fun plus(other: Int): Int
operator fun plus(other: Long): Long
operator fun plus(other: Short): Int

Adds the other value to this value.

Since Kotlin 1.0
actual inline operator fun plus(other: Byte): Int
actual inline operator fun plus(other: Double): Double
actual inline operator fun plus(other: Float): Float
actual inline operator fun plus(other: Int): Int
actual inline operator fun plus(other: Long): Long
actual inline operator fun plus(other: Short): Int

Adds the other value to this value.

Since Kotlin 1.3
actual inline operator fun plus(other: Byte): Int
actual inline operator fun plus(other: Double): Double
actual inline operator fun plus(other: Float): Float
actual inline operator fun plus(other: Int): Int
actual inline operator fun plus(other: Long): Long
actual inline operator fun plus(other: Short): Int

Adds the other value to this value.

Since Kotlin 1.8
actual inline operator fun plus(other: Byte): Int
actual inline operator fun plus(other: Double): Double
actual inline operator fun plus(other: Float): Float
actual inline operator fun plus(other: Int): Int
actual inline operator fun plus(other: Long): Long
actual inline operator fun plus(other: Short): Int

Adds the other value to this value.

Since Kotlin 1.8
Link copied to clipboard
expect operator fun rangeTo(other: Byte): IntRange
expect operator fun rangeTo(other: Int): IntRange
expect operator fun rangeTo(other: Long): LongRange
expect operator fun rangeTo(other: Short): IntRange

Creates a range from this value to the specified other value.

Since Kotlin 1.0
actual operator fun rangeTo(other: Byte): IntRange
actual operator fun rangeTo(other: Int): IntRange
actual operator fun rangeTo(other: Long): LongRange
actual operator fun rangeTo(other: Short): IntRange

Creates a range from this value to the specified other value.

Since Kotlin 1.1
operator fun rangeTo(other: Byte): IntRange
operator fun rangeTo(other: Int): IntRange
operator fun rangeTo(other: Long): LongRange
operator fun rangeTo(other: Short): IntRange

Creates a range from this value to the specified other value.

Since Kotlin 1.0
actual operator fun rangeTo(other: Byte): IntRange
actual operator fun rangeTo(other: Int): IntRange
actual operator fun rangeTo(other: Long): LongRange
actual operator fun rangeTo(other: Short): IntRange

Creates a range from this value to the specified other value.

Since Kotlin 1.3
actual operator fun rangeTo(other: Byte): IntRange
actual operator fun rangeTo(other: Int): IntRange
actual operator fun rangeTo(other: Long): LongRange
actual operator fun rangeTo(other: Short): IntRange

Creates a range from this value to the specified other value.

Since Kotlin 1.8
actual operator fun rangeTo(other: Byte): IntRange
actual operator fun rangeTo(other: Int): IntRange
actual operator fun rangeTo(other: Long): LongRange
actual operator fun rangeTo(other: Short): IntRange

Creates a range from this value to the specified other value.

Since Kotlin 1.8
Link copied to clipboard
expect operator fun rangeUntil(other: Byte): IntRange
expect operator fun rangeUntil(other: Int): IntRange
expect operator fun rangeUntil(other: Long): LongRange
expect operator fun rangeUntil(other: Short): IntRange

Creates a range from this value up to but excluding the specified other value.

Since Kotlin 1.9
actual operator fun rangeUntil(other: Byte): IntRange
actual operator fun rangeUntil(other: Int): IntRange
actual operator fun rangeUntil(other: Long): LongRange
actual operator fun rangeUntil(other: Short): IntRange

Creates a range from this value up to but excluding the specified other value.

Since Kotlin 1.9
operator fun rangeUntil(other: Byte): IntRange
operator fun rangeUntil(other: Int): IntRange
operator fun rangeUntil(other: Long): LongRange
operator fun rangeUntil(other: Short): IntRange

Creates a range from this value up to but excluding the specified other value.

Since Kotlin 1.9
actual operator fun rangeUntil(other: Byte): IntRange
actual operator fun rangeUntil(other: Int): IntRange
actual operator fun rangeUntil(other: Long): LongRange
actual operator fun rangeUntil(other: Short): IntRange

Creates a range from this value up to but excluding the specified other value.

Since Kotlin 1.9
actual operator fun rangeUntil(other: Byte): IntRange
actual operator fun rangeUntil(other: Int): IntRange
actual operator fun rangeUntil(other: Long): LongRange
actual operator fun rangeUntil(other: Short): IntRange

Creates a range from this value up to but excluding the specified other value.

Since Kotlin 1.9
actual operator fun rangeUntil(other: Byte): IntRange
actual operator fun rangeUntil(other: Int): IntRange
actual operator fun rangeUntil(other: Long): LongRange
actual operator fun rangeUntil(other: Short): IntRange

Creates a range from this value up to but excluding the specified other value.

Since Kotlin 1.9
Link copied to clipboard
expect operator fun rem(other: Byte): Int
expect operator fun rem(other: Double): Double
expect operator fun rem(other: Float): Float
expect operator fun rem(other: Int): Int
expect operator fun rem(other: Long): Long
expect operator fun rem(other: Short): Int

Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).

Since Kotlin 1.1
actual operator fun rem(other: Byte): Int
actual operator fun rem(other: Double): Double
actual operator fun rem(other: Float): Float
actual operator fun rem(other: Int): Int
actual operator fun rem(other: Long): Long
actual operator fun rem(other: Short): Int

Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).

Since Kotlin 1.1
operator fun rem(other: Byte): Int
operator fun rem(other: Double): Double
operator fun rem(other: Float): Float
operator fun rem(other: Int): Int
operator fun rem(other: Long): Long
operator fun rem(other: Short): Int

Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).

Since Kotlin 1.1
actual inline operator fun rem(other: Byte): Int
actual inline operator fun rem(other: Double): Double
actual inline operator fun rem(other: Float): Float
actual inline operator fun rem(other: Int): Int
actual inline operator fun rem(other: Long): Long
actual inline operator fun rem(other: Short): Int

Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).

Since Kotlin 1.3
actual inline operator fun rem(other: Byte): Int
actual inline operator fun rem(other: Double): Double
actual inline operator fun rem(other: Float): Float
actual inline operator fun rem(other: Int): Int
actual inline operator fun rem(other: Long): Long
actual inline operator fun rem(other: Short): Int

Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).

Since Kotlin 1.8
actual inline operator fun rem(other: Byte): Int
actual inline operator fun rem(other: Double): Double
actual inline operator fun rem(other: Float): Float
actual inline operator fun rem(other: Int): Int
actual inline operator fun rem(other: Long): Long
actual inline operator fun rem(other: Short): Int

Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).

Since Kotlin 1.8
Link copied to clipboard
fun Short.rotateLeft(bitCount: Int): Short

Rotates the binary representation of this Short number left by the specified bitCount number of bits. The most significant bits pushed out from the left side reenter the number as the least significant bits on the right side.

Since Kotlin 1.6
Link copied to clipboard
fun Short.rotateRight(bitCount: Int): Short

Rotates the binary representation of this Short number right by the specified bitCount number of bits. The least significant bits pushed out from the right side reenter the number as the most significant bits on the left side.

Since Kotlin 1.6
Link copied to clipboard
inline external fun <R : Number> Number.signExtend(): R
Since Kotlin 1.3
Link copied to clipboard

Returns a number having a single bit set in the position of the most significant set bit of this Short number, or zero, if this number is zero.

Since Kotlin 1.4
Link copied to clipboard

Returns a number having a single bit set in the position of the least significant set bit of this Short number, or zero, if this number is zero.

Since Kotlin 1.4
Link copied to clipboard
expect operator fun times(other: Byte): Int
expect operator fun times(other: Double): Double
expect operator fun times(other: Float): Float
expect operator fun times(other: Int): Int
expect operator fun times(other: Long): Long
expect operator fun times(other: Short): Int

Multiplies this value by the other value.

Since Kotlin 1.0
actual operator fun times(other: Byte): Int
actual operator fun times(other: Double): Double
actual operator fun times(other: Float): Float
actual operator fun times(other: Int): Int
actual operator fun times(other: Long): Long
actual operator fun times(other: Short): Int

Multiplies this value by the other value.

Since Kotlin 1.1
operator fun times(other: Byte): Int
operator fun times(other: Double): Double
operator fun times(other: Float): Float
operator fun times(other: Int): Int
operator fun times(other: Long): Long
operator fun times(other: Short): Int

Multiplies this value by the other value.

Since Kotlin 1.0
actual inline operator fun times(other: Byte): Int
actual inline operator fun times(other: Double): Double
actual inline operator fun times(other: Float): Float
actual inline operator fun times(other: Int): Int
actual inline operator fun times(other: Long): Long
actual inline operator fun times(other: Short): Int

Multiplies this value by the other value.

Since Kotlin 1.3
actual inline operator fun times(other: Byte): Int
actual inline operator fun times(other: Double): Double
actual inline operator fun times(other: Float): Float
actual inline operator fun times(other: Int): Int
actual inline operator fun times(other: Long): Long
actual inline operator fun times(other: Short): Int

Multiplies this value by the other value.

Since Kotlin 1.8
actual inline operator fun times(other: Byte): Int
actual inline operator fun times(other: Double): Double
actual inline operator fun times(other: Float): Float
actual inline operator fun times(other: Int): Int
actual inline operator fun times(other: Long): Long
actual inline operator fun times(other: Short): Int

Multiplies this value by the other value.

Since Kotlin 1.8
Link copied to clipboard
expect open override fun toByte(): Byte

Converts this Short value to Byte.

Since Kotlin 1.0
actual open override fun toByte(): Byte

Converts this Short value to Byte.

Since Kotlin 1.1
open override fun toByte(): Byte

Converts this Short value to Byte.

Since Kotlin 1.0
actual open external override fun toByte(): Byte

Converts this Short value to Byte.

Since Kotlin 1.3
actual open inline override fun toByte(): Byte

Converts this Short value to Byte.

Since Kotlin 1.8
actual open inline override fun toByte(): Byte

Converts this Short value to Byte.

Since Kotlin 1.8
Link copied to clipboard
expect open override fun toChar(): Char

Converts this Short value to Char.

Since Kotlin 1.0
actual open override fun toChar(): Char

Converts this Short value to Char.

Since Kotlin 1.1
open override fun toChar(): Char

Converts this Short value to Char.

Since Kotlin 1.0
actual open external override fun toChar(): Char

Converts this Short value to Char.

Since Kotlin 1.3
actual open override fun toChar(): Char

Converts this Short value to Char.

Since Kotlin 1.8
actual open override fun toChar(): Char

Converts this Short value to Char.

Since Kotlin 1.8
Link copied to clipboard
expect open override fun toDouble(): Double

Converts this Short value to Double.

Since Kotlin 1.0
actual open override fun toDouble(): Double

Converts this Short value to Double.

Since Kotlin 1.1
open override fun toDouble(): Double

Converts this Short value to Double.

Since Kotlin 1.0
actual open external override fun toDouble(): Double

Converts this Short value to Double.

Since Kotlin 1.3
actual open override fun toDouble(): Double

Converts this Short value to Double.

Since Kotlin 1.8
actual open override fun toDouble(): Double

Converts this Short value to Double.

Since Kotlin 1.8
Link copied to clipboard
expect open override fun toFloat(): Float

Converts this Short value to Float.

Since Kotlin 1.0
actual open override fun toFloat(): Float

Converts this Short value to Float.

Since Kotlin 1.1
open override fun toFloat(): Float

Converts this Short value to Float.

Since Kotlin 1.0
actual open external override fun toFloat(): Float

Converts this Short value to Float.

Since Kotlin 1.3
actual open override fun toFloat(): Float

Converts this Short value to Float.

Since Kotlin 1.8
actual open override fun toFloat(): Float

Converts this Short value to Float.

Since Kotlin 1.8
Link copied to clipboard
fun Short.toHexString(format: HexFormat = HexFormat.Default): String

Formats this Short value using the specified format.

Since Kotlin 1.9
Link copied to clipboard
expect open override fun toInt(): Int

Converts this Short value to Int.

Since Kotlin 1.0
actual open override fun toInt(): Int

Converts this Short value to Int.

Since Kotlin 1.1
open override fun toInt(): Int

Converts this Short value to Int.

Since Kotlin 1.0
actual open external override fun toInt(): Int

Converts this Short value to Int.

Since Kotlin 1.3
actual open override fun toInt(): Int

Converts this Short value to Int.

Since Kotlin 1.8
actual open override fun toInt(): Int

Converts this Short value to Int.

Since Kotlin 1.8
Link copied to clipboard
expect open override fun toLong(): Long

Converts this Short value to Long.

Since Kotlin 1.0
actual open override fun toLong(): Long

Converts this Short value to Long.

Since Kotlin 1.1
open override fun toLong(): Long

Converts this Short value to Long.

Since Kotlin 1.0
actual open external override fun toLong(): Long

Converts this Short value to Long.

Since Kotlin 1.3
actual open override fun toLong(): Long

Converts this Short value to Long.

Since Kotlin 1.8
actual open override fun toLong(): Long

Converts this Short value to Long.

Since Kotlin 1.8
Link copied to clipboard
expect open override fun toShort(): Short

Returns this value.

Since Kotlin 1.0
actual open override fun toShort(): Short

Returns this value.

Since Kotlin 1.1
open override fun toShort(): Short

Returns this value.

Since Kotlin 1.0
actual open inline override fun toShort(): Short

Returns this value.

Since Kotlin 1.3
actual open inline override fun toShort(): Short

Returns this value.

Since Kotlin 1.8
actual open inline override fun toShort(): Short

Returns this value.

Since Kotlin 1.8
Link copied to clipboard
expect open override fun toString(): String
Since Kotlin 1.0
actual open override fun toString(): String
Since Kotlin 1.1
open override fun toString(): String
Since Kotlin 1.0
actual open external override fun toString(): String
Since Kotlin 1.3
actual open override fun toString(): String
Since Kotlin 1.8
actual open override fun toString(): String
Since Kotlin 1.8
Link copied to clipboard
expect fun Short.toString(radix: Int): String

Returns a string representation of this Short value in the specified radix.

Since Kotlin 1.2
actual inline fun Short.toString(radix: Int): String

Returns a string representation of this Short value in the specified radix.

Since Kotlin 1.2
actual inline fun Short.toString(radix: Int): String

Returns a string representation of this Short value in the specified radix.

Since Kotlin 1.1
actual inline fun Short.toString(radix: Int): String

Returns a string representation of this Short value in the specified radix.

Since Kotlin 1.3
actual fun Short.toString(radix: Int): String

Returns a string representation of this Short value in the specified radix.

Since Kotlin 1.8
actual fun Short.toString(radix: Int): String

Returns a string representation of this Short value in the specified radix.

Since Kotlin 1.8
Link copied to clipboard
inline fun Short.toUByte(): UByte

Converts this Short value to UByte.

Since Kotlin 1.5
Link copied to clipboard
inline fun Short.toUInt(): UInt

Converts this Short value to UInt.

Since Kotlin 1.5
Link copied to clipboard
inline fun Short.toULong(): ULong

Converts this Short value to ULong.

Since Kotlin 1.5
Link copied to clipboard
inline fun Short.toUShort(): UShort

Converts this Short value to UShort.

Since Kotlin 1.5
Link copied to clipboard
expect operator fun unaryMinus(): Int

Returns the negative of this value.

Since Kotlin 1.0
actual operator fun unaryMinus(): Int

Returns the negative of this value.

Since Kotlin 1.1
operator fun unaryMinus(): Int

Returns the negative of this value.

Since Kotlin 1.0
actual inline operator fun unaryMinus(): Int

Returns the negative of this value.

Since Kotlin 1.3
actual inline operator fun unaryMinus(): Int

Returns the negative of this value.

Since Kotlin 1.8
actual inline operator fun unaryMinus(): Int

Returns the negative of this value.

Since Kotlin 1.8
Link copied to clipboard
expect operator fun unaryPlus(): Int

Returns this value.

Since Kotlin 1.0
actual operator fun unaryPlus(): Int

Returns this value.

Since Kotlin 1.1
operator fun unaryPlus(): Int

Returns this value.

Since Kotlin 1.0
actual inline operator fun unaryPlus(): Int

Returns this value.

Since Kotlin 1.3
actual inline operator fun unaryPlus(): Int

Returns this value.

Since Kotlin 1.8
actual inline operator fun unaryPlus(): Int

Returns this value.

Since Kotlin 1.8
Link copied to clipboard
infix fun Short.until(to: Byte): IntRange
infix fun Short.until(to: Int): IntRange
infix fun Short.until(to: Long): LongRange
infix fun Short.until(to: Short): IntRange

Returns a range from this value up to but excluding the specified to value.

Since Kotlin 1.0
Link copied to clipboard
infix inline fun Short.xor(other: Short): Short

Performs a bitwise XOR operation between the two values.

Since Kotlin 1.1