Package kotlin

Core functions and types, available on all supported platforms.

Core functions and types, available on all supported platforms.

Core functions and types, available on all supported platforms.

Core functions and types, available on all supported platforms.

Core functions and types, available on all supported platforms.

Types

Annotation
Link copied to clipboard
interface Annotation

Base interface implicitly implemented by all annotation interfaces. See Kotlin language documentation for more information on annotations.

interface Annotation

Base interface implicitly implemented by all annotation interfaces. See Kotlin language documentation for more information on annotations.

interface Annotation

Base interface implicitly implemented by all annotation interfaces. See Kotlin language documentation for more information on annotations.

interface Annotation

Base interface implicitly implemented by all annotation interfaces. See Kotlin language documentation for more information on annotations.

Any
Link copied to clipboard
open class Any

The root of the Kotlin class hierarchy. Every Kotlin class has Any as a superclass.

open class Any

The root of the Kotlin class hierarchy. Every Kotlin class has Any as a superclass.

open class Any

The root of the Kotlin class hierarchy. Every Kotlin class has Any as a superclass.

ArithmeticException
Link copied to clipboard
expect open class ArithmeticException(message: String?) : RuntimeException
actual typealias ArithmeticException = ArithmeticException
actual open class ArithmeticException(message: String?) : RuntimeException
actual open class ArithmeticException(message: String?) : RuntimeException
Array
Link copied to clipboard
class Array<T>

Represents an array (specifically, a Java array when targeting the JVM platform). Array instances can be created using the arrayOf, arrayOfNulls and emptyArray standard library functions. See Kotlin language documentation for more information on arrays.

class Array<T>

Represents an array (specifically, a Java array when targeting the JVM platform). Array instances can be created using the arrayOf, arrayOfNulls and emptyArray standard library functions. See Kotlin language documentation for more information on arrays.

class Array<T>

Represents an array. Array instances can be created using the constructor, arrayOf, arrayOfNulls and emptyArray standard library functions. See Kotlin language documentation for more information on arrays.

ArrayIndexOutOfBoundsException
Link copied to clipboard
open class ArrayIndexOutOfBoundsException : IndexOutOfBoundsException
AssertionError
Link copied to clipboard
expect open class AssertionError : Error
actual typealias AssertionError = AssertionError
actual open class AssertionError constructor(message: String?, cause: Throwable?) : Error
actual open class AssertionError : Error
Boolean
Link copied to clipboard
class Boolean : Comparable<Boolean>

Represents a value which is either true or false. On the JVM, non-nullable values of this type are represented as values of the primitive type boolean.

class Boolean : Comparable<Boolean>

Represents a value which is either true or false. On the JVM, non-nullable values of this type are represented as values of the primitive type boolean.

class Boolean : Comparable<Boolean>

Represents a value which is either true or false. On the JVM, non-nullable values of this type are represented as values of the primitive type boolean.

BooleanArray
Link copied to clipboard
class BooleanArray(size: Int)

An array of booleans. When targeting the JVM, instances of this class are represented as boolean[].

class BooleanArray(size: Int)

An array of booleans. When targeting the JVM, instances of this class are represented as boolean[].

class BooleanArray
BuilderInference
Link copied to clipboard

Allows to infer generic type arguments of a function from the calls in the annotated function parameter of that function.

Since Kotlin

1.3
Byte
Link copied to clipboard
class Byte : Number, Comparable<Byte>

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

class Byte : Number, Comparable<Byte>

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

class Byte : Number, Comparable<Byte>

Represents a 8-bit signed integer.

ByteArray
Link copied to clipboard
class ByteArray(size: Int)

An array of bytes. When targeting the JVM, instances of this class are represented as byte[].

class ByteArray(size: Int)

An array of bytes. When targeting the JVM, instances of this class are represented as byte[].

class ByteArray

An array of bytes.

Char
Link copied to clipboard
class Char : Comparable<Char>

Represents a 16-bit Unicode character.

class Char : Comparable<Char>

Represents a 16-bit Unicode character.

class Char : Comparable<Char>

Represents a 16-bit Unicode character.

CharArray
Link copied to clipboard
class CharArray(size: Int)

An array of chars. When targeting the JVM, instances of this class are represented as char[].

class CharArray(size: Int)

An array of chars. When targeting the JVM, instances of this class are represented as char[].

class CharArray

An array of chars.

CharSequence
Link copied to clipboard
interface CharSequence

Represents a readable sequence of Char values.

interface CharSequence

Represents a readable sequence of Char values.

interface CharSequence

Represents a readable sequence of Char values.

interface CharSequence

Represents a readable sequence of Char values.

ClassCastException
Link copied to clipboard
expect open class ClassCastException(message: String?) : RuntimeException
actual typealias ClassCastException = ClassCastException
actual open class ClassCastException(message: String?) : RuntimeException
actual open class ClassCastException(message: String?) : RuntimeException
Comparable
Link copied to clipboard
interface Comparable<in T>

Classes which inherit from this interface have a defined total ordering between their instances.

interface Comparable<in T>

Classes which inherit from this interface have a defined total ordering between their instances.

interface Comparable<in T>

Classes which inherit from this interface have a defined total ordering between their instances.

interface Comparable<in T>

Classes which inherit from this interface have a defined total ordering between their instances.

Comparator
Link copied to clipboard
expect fun interface Comparator<T>

Provides a comparison function for imposing a total ordering between instances of the type T.

actual typealias Comparator = Comparator<T>
actual fun interface Comparator<T>
actual fun interface Comparator<T>
ConcurrentModificationException
Link copied to clipboard
expect open class ConcurrentModificationException constructor(message: String?, cause: Throwable?) : RuntimeException
actual typealias ConcurrentModificationException = ConcurrentModificationException
actual open class ConcurrentModificationException constructor(message: String?, cause: Throwable?) : RuntimeException
actual open class ConcurrentModificationException constructor(message: String?, cause: Throwable?) : RuntimeException
DeepRecursiveFunction
Link copied to clipboard
class DeepRecursiveFunction<T, R>(block: suspend DeepRecursiveScope<T, R>.(T) -> R)

Defines deep recursive function that keeps its stack on the heap, which allows very deep recursive computations that do not use the actual call stack. To initiate a call to this deep recursive function use its invoke function. As a rule of thumb, it should be used if recursion goes deeper than a thousand calls.

Since Kotlin

1.4
DeepRecursiveScope
Link copied to clipboard
sealed class DeepRecursiveScope<T, R>

A scope class for DeepRecursiveFunction function declaration that defines callRecursive methods to recursively call this function or another DeepRecursiveFunction putting the call activation frame on the heap.

Since Kotlin

1.4
DeprecatedSinceKotlin
Link copied to clipboard

Marks the annotated declaration as deprecated. In contrast to Deprecated, severity of the reported diagnostic is not a constant value, but differs depending on the API version of the usage (the value of the -api-version argument when compiling the module where the usage is located). If the API version is greater or equal than hiddenSince, the declaration will not be accessible from the code (as if it was deprecated with level DeprecationLevel.HIDDEN), otherwise if the API version is greater or equal than errorSince, the usage will be marked as an error (as with DeprecationLevel.ERROR), otherwise if the API version is greater or equal than warningSince, the usage will be marked as a warning (as with DeprecationLevel.WARNING), otherwise the annotation is ignored.

Since Kotlin

1.4

Marks the annotated declaration as deprecated. In contrast to Deprecated, severity of the reported diagnostic is not a constant value, but differs depending on the API version of the usage (the value of the -api-version argument when compiling the module where the usage is located). If the API version is greater or equal than hiddenSince, the declaration will not be accessible from the code (as if it was deprecated with level DeprecationLevel.HIDDEN), otherwise if the API version is greater or equal than errorSince, the usage will be marked as an error (as with DeprecationLevel.ERROR), otherwise if the API version is greater or equal than warningSince, the usage will be marked as a warning (as with DeprecationLevel.WARNING), otherwise the annotation is ignored.

Since Kotlin

1.4

Marks the annotated declaration as deprecated. In contrast to Deprecated, severity of the reported diagnostic is not a constant value, but differs depending on the API version of the usage (the value of the -api-version argument when compiling the module where the usage is located). If the API version is greater or equal than hiddenSince, the declaration will not be accessible from the code (as if it was deprecated with level DeprecationLevel.HIDDEN), otherwise if the API version is greater or equal than errorSince, the usage will be marked as an error (as with DeprecationLevel.ERROR), otherwise if the API version is greater or equal than warningSince, the usage will be marked as a warning (as with DeprecationLevel.WARNING), otherwise the annotation is ignored.

Since Kotlin

1.4
DeprecationLevel
Link copied to clipboard
enum DeprecationLevel : Enum<DeprecationLevel>

Possible levels of a deprecation. The level specifies how the deprecated element usages are reported in code.

enum DeprecationLevel : Enum<DeprecationLevel>

Possible levels of a deprecation. The level specifies how the deprecated element usages are reported in code.

enum DeprecationLevel : Enum<DeprecationLevel>

Possible levels of a deprecation. The level specifies how the deprecated element usages are reported in code.

Double
Link copied to clipboard
class Double : Number, Comparable<Double>

Represents a double-precision 64-bit IEEE 754 floating point number. On the JVM, non-nullable values of this type are represented as values of the primitive type double.

class Double : Number, Comparable<Double>

Represents a double-precision 64-bit IEEE 754 floating point number. On the JVM, non-nullable values of this type are represented as values of the primitive type double.

class Double : Number, Comparable<Double>

Represents a double-precision 64-bit IEEE 754 floating point number.

DoubleArray
Link copied to clipboard
class DoubleArray(size: Int)

An array of doubles. When targeting the JVM, instances of this class are represented as double[].

class DoubleArray(size: Int)

An array of doubles. When targeting the JVM, instances of this class are represented as double[].

class DoubleArray
DslMarker
Link copied to clipboard
annotation class DslMarker

When applied to annotation class X specifies that X defines a DSL language

Since Kotlin

1.1
annotation class DslMarker

When applied to annotation class X specifies that X defines a DSL language

Since Kotlin

1.1
annotation class DslMarker

When applied to annotation class X specifies that X defines a DSL language

Since Kotlin

1.1
Enum
Link copied to clipboard
abstract class Enum<E : Enum<E>>(name: String, ordinal: Int) : Comparable<E>

The common base class of all enum classes. See the Kotlin language documentation for more information on enum classes.

abstract class Enum<E : Enum<E>>(name: String, ordinal: Int) : Comparable<E>

The common base class of all enum classes. See the Kotlin language documentation for more information on enum classes.

abstract class Enum<E : Enum<E>>(name: String, ordinal: Int) : Comparable<E>

The common base class of all enum classes. See the Kotlin language documentation for more information on enum classes.

abstract class Enum<E : Enum<E>>(name: String, ordinal: Int) : Comparable<E>

The common base class of all enum classes. See the Kotlin language documentation for more information on enum classes.

Error
Link copied to clipboard
expect open class Error(message: String?, cause: Throwable?) : Throwable
actual typealias Error = Error
actual open class Error(message: String?, cause: Throwable?) : Throwable
actual open class Error(message: String?, cause: Throwable?) : Throwable
Exception
Link copied to clipboard
expect open class Exception(message: String?, cause: Throwable?) : Throwable
actual typealias Exception = Exception
actual open class Exception(message: String?, cause: Throwable?) : Throwable
actual open class Exception(message: String?, cause: Throwable?) : Throwable
Experimental
Link copied to clipboard
annotation class Experimental(level: Experimental.Level)

Signals that the annotated annotation class is a marker of an experimental API.

Since Kotlin

1.2
ExperimentalStdlibApi
Link copied to clipboard

This annotation marks the standard library API that is considered experimental and is not subject to the general compatibility guarantees given for the standard library: the behavior of such API may be changed or the API may be removed completely in any further release.

Since Kotlin

1.3
ExtensionFunctionType
Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.TYPE])
annotation class ExtensionFunctionType

Signifies that the annotated functional type represents an extension function.

@Target(allowedTargets = [AnnotationTarget.TYPE])
annotation class ExtensionFunctionType

Signifies that the annotated functional type represents an extension function.

@Target(allowedTargets = [AnnotationTarget.TYPE])
annotation class ExtensionFunctionType

Signifies that the annotated functional type represents an extension function.

Float
Link copied to clipboard
class Float : Number, Comparable<Float>

Represents a single-precision 32-bit IEEE 754 floating point number. On the JVM, non-nullable values of this type are represented as values of the primitive type float.

class Float : Number, Comparable<Float>

Represents a single-precision 32-bit IEEE 754 floating point number. On the JVM, non-nullable values of this type are represented as values of the primitive type float.

class Float : Number, Comparable<Float>

Represents a single-precision 32-bit IEEE 754 floating point number.

FloatArray
Link copied to clipboard
class FloatArray(size: Int)

An array of floats. When targeting the JVM, instances of this class are represented as float[].

class FloatArray(size: Int)

An array of floats. When targeting the JVM, instances of this class are represented as float[].

class FloatArray

An array of floats.

Function
Link copied to clipboard
interface Function<out R>

Represents a value of a functional type, such as a lambda, an anonymous function or a function reference.

interface Function<out R>

Represents a value of a functional type, such as a lambda, an anonymous function or a function reference.

interface Function<out R>

Represents a value of a functional type, such as a lambda, an anonymous function or a function reference.

interface Function<out R>

Represents a value of a functional type, such as a lambda, an anonymous function or a function reference.

IllegalArgumentException
Link copied to clipboard
expect open class IllegalArgumentException(message: String?, cause: Throwable?) : RuntimeException
actual typealias IllegalArgumentException = IllegalArgumentException
actual open class IllegalArgumentException(message: String?, cause: Throwable?) : RuntimeException
actual open class IllegalArgumentException(message: String?, cause: Throwable?) : RuntimeException
IllegalStateException
Link copied to clipboard
expect open class IllegalStateException(message: String?, cause: Throwable?) : RuntimeException
actual typealias IllegalStateException = IllegalStateException
actual open class IllegalStateException(message: String?, cause: Throwable?) : RuntimeException
actual open class IllegalStateException(message: String?, cause: Throwable?) : RuntimeException
IndexOutOfBoundsException
Link copied to clipboard
expect open class IndexOutOfBoundsException(message: String?) : RuntimeException
actual typealias IndexOutOfBoundsException = IndexOutOfBoundsException
actual open class IndexOutOfBoundsException(message: String?) : RuntimeException
actual open class IndexOutOfBoundsException(message: String?) : RuntimeException
Int
Link copied to clipboard
class Int : Number, Comparable<Int>

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

class Int : Number, Comparable<Int>

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

class Int : Number, Comparable<Int>

Represents a 32-bit signed integer.

IntArray
Link copied to clipboard
class IntArray(size: Int)

An array of ints. When targeting the JVM, instances of this class are represented as int[].

class IntArray(size: Int)

An array of ints. When targeting the JVM, instances of this class are represented as int[].

class IntArray

An array of ints. When targeting the JVM, instances of this class are represented as int[].

KotlinNullPointerException
Link copied to clipboard
open class KotlinNullPointerException : NullPointerException
KotlinVersion
Link copied to clipboard
class KotlinVersion(major: Int, minor: Int, patch: Int) : Comparable<KotlinVersion>

Represents a version of the Kotlin standard library.

Since Kotlin

1.1
Lazy
Link copied to clipboard
interface Lazy<out T>

Represents a value with lazy initialization.

LazyThreadSafetyMode
Link copied to clipboard
enum LazyThreadSafetyMode : Enum<LazyThreadSafetyMode>

Specifies how a Lazy instance synchronizes initialization among multiple threads.

Long
Link copied to clipboard
class Long : Number, Comparable<Long>

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

class Long : Number, Comparable<Long>

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

class Long : Number, Comparable<Long>

Represents a 64-bit signed integer.

LongArray
Link copied to clipboard
class LongArray(size: Int)

An array of longs. When targeting the JVM, instances of this class are represented as long[].

class LongArray(size: Int)

An array of longs. When targeting the JVM, instances of this class are represented as long[].

class LongArray

An array of longs.

Metadata
Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class Metadata(kind: Int, metadataVersion: IntArray, bytecodeVersion: IntArray, data1: Array<String>, data2: Array<String>, extraString: String, packageName: String, extraInt: Int)

This annotation is present on any class file produced by the Kotlin compiler and is read by the compiler and reflection. Parameters have very short JVM names on purpose: these names appear in all generated class files, and we'd like to reduce their size.

Since Kotlin

1.3
NoSuchElementException
Link copied to clipboard
expect open class NoSuchElementException(message: String?) : RuntimeException
actual typealias NoSuchElementException = NoSuchElementException
actual open class NoSuchElementException(message: String?) : RuntimeException
actual open class NoSuchElementException(message: String?) : RuntimeException
Nothing
Link copied to clipboard
class Nothing

Nothing has no instances. You can use Nothing to represent "a value that never exists": for example, if a function has the return type of Nothing, it means that it never returns (always throws an exception).

class Nothing

Nothing has no instances. You can use Nothing to represent "a value that never exists": for example, if a function has the return type of Nothing, it means that it never returns (always throws an exception).

class Nothing

Nothing has no instances. You can use Nothing to represent "a value that never exists": for example, if a function has the return type of Nothing, it means that it never returns (always throws an exception).

NotImplementedError
Link copied to clipboard
class NotImplementedError(message: String) : Error

An exception is thrown to indicate that a method body remains to be implemented.

NoWhenBranchMatchedException
Link copied to clipboard
expect open class NoWhenBranchMatchedException(message: String?, cause: Throwable?) : RuntimeException
actual open class NoWhenBranchMatchedException(message: String?, cause: Throwable?) : RuntimeException
actual open class NoWhenBranchMatchedException(message: String?, cause: Throwable?) : RuntimeException
actual open class NoWhenBranchMatchedException(message: String?, cause: Throwable?) : RuntimeException
NullPointerException
Link copied to clipboard
expect open class NullPointerException(message: String?) : RuntimeException
actual typealias NullPointerException = NullPointerException
actual open class NullPointerException(message: String?) : RuntimeException
actual open class NullPointerException(message: String?) : RuntimeException
Number
Link copied to clipboard
abstract class Number

Superclass for all platform classes representing numeric values.

abstract class Number

Superclass for all platform classes representing numeric values.

abstract class Number

Superclass for all platform classes representing numeric values.

NumberFormatException
Link copied to clipboard
expect open class NumberFormatException(message: String?) : IllegalArgumentException
actual typealias NumberFormatException = NumberFormatException
actual open class NumberFormatException(message: String?) : IllegalArgumentException
actual open class NumberFormatException(message: String?) : IllegalArgumentException
OptIn
Link copied to clipboard

Allows to use the API denoted by the given markers in the annotated file, declaration, or expression. If a declaration is annotated with OptIn, its usages are not required to opt in to that API.

Since Kotlin

1.3
OptionalExpectation
Link copied to clipboard
annotation class OptionalExpectation

Marks an expected annotation class that it isn't required to have actual counterparts in all platforms.

OutOfMemoryError
Link copied to clipboard
open class OutOfMemoryError : Error
OverloadResolutionByLambdaReturnType
Link copied to clipboard
annotation class OverloadResolutionByLambdaReturnType

Enables overload selection based on the type of the value returned from lambda argument.

Since Kotlin

1.4
Pair
Link copied to clipboard
data class Pair<out A, out B>(first: A, second: B) : Serializable

Represents a generic pair of two values.

ParameterName
Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.TYPE])
annotation class ParameterName(name: String)

Annotates type arguments of functional type and holds corresponding parameter name specified by the user in type declaration (if any).

Since Kotlin

1.1
@Target(allowedTargets = [AnnotationTarget.TYPE])
annotation class ParameterName(name: String)

Annotates type arguments of functional type and holds corresponding parameter name specified by the user in type declaration (if any).

Since Kotlin

1.1
@Target(allowedTargets = [AnnotationTarget.TYPE])
annotation class ParameterName(name: String)

Annotates type arguments of functional type and holds corresponding parameter name specified by the user in type declaration (if any).

Since Kotlin

1.1
PublishedApi
Link copied to clipboard

When applied to a class or a member with internal visibility allows to use it from public inline functions and makes it effectively public.

Since Kotlin

1.1

When applied to a class or a member with internal visibility allows to use it from public inline functions and makes it effectively public.

Since Kotlin

1.1

When applied to a class or a member with internal visibility allows to use it from public inline functions and makes it effectively public.

Since Kotlin

1.1
ReplaceWith
Link copied to clipboard
@Target(allowedTargets = [])
annotation class ReplaceWith(expression: String, imports: String)

Specifies a code fragment that can be used to replace a deprecated function, property or class. Tools such as IDEs can automatically apply the replacements specified through this annotation.

@Target(allowedTargets = [])
annotation class ReplaceWith(expression: String, imports: String)

Specifies a code fragment that can be used to replace a deprecated function, property or class. Tools such as IDEs can automatically apply the replacements specified through this annotation.

@Target(allowedTargets = [])
annotation class ReplaceWith(expression: String, imports: String)

Specifies a code fragment that can be used to replace a deprecated function, property or class. Tools such as IDEs can automatically apply the replacements specified through this annotation.

RequiresOptIn
Link copied to clipboard
annotation class RequiresOptIn(message: String, level: RequiresOptIn.Level)

Signals that the annotated annotation class is a marker of an API that requires an explicit opt-in.

Since Kotlin

1.3
Result
Link copied to clipboard
value class Result<out T> : Serializable

A discriminated union that encapsulates a successful outcome with a value of type T or a failure with an arbitrary Throwable exception.

Since Kotlin

1.3
RuntimeException
Link copied to clipboard
expect open class RuntimeException(message: String?, cause: Throwable?) : Exception
actual typealias RuntimeException = RuntimeException
actual open class RuntimeException(message: String?, cause: Throwable?) : Exception
actual open class RuntimeException(message: String?, cause: Throwable?) : Exception
Short
Link copied to clipboard
class Short : Number, Comparable<Short>

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

class Short : Number, Comparable<Short>

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

class Short : Number, Comparable<Short>

Represents a 16-bit signed integer.

ShortArray
Link copied to clipboard
class ShortArray(size: Int)

An array of shorts. When targeting the JVM, instances of this class are represented as short[].

class ShortArray(size: Int)

An array of shorts. When targeting the JVM, instances of this class are represented as short[].

class ShortArray

An array of shorts.

SinceKotlin
Link copied to clipboard

Specifies the first version of Kotlin where a declaration has appeared. Using the declaration and specifying an older API version (via the -api-version command line option) will result in an error.

Specifies the first version of Kotlin where a declaration has appeared. Using the declaration and specifying an older API version (via the -api-version command line option) will result in an error.

Specifies the first version of Kotlin where a declaration has appeared. Using the declaration and specifying an older API version (via the -api-version command line option) will result in an error.

String
Link copied to clipboard
class String : Comparable<String> , CharSequence

The String class represents character strings. All string literals in Kotlin programs, such as "abc", are implemented as instances of this class.

class String : Comparable<String> , CharSequence

The String class represents character strings. All string literals in Kotlin programs, such as "abc", are implemented as instances of this class.

class String : Comparable<String> , CharSequence
Suppress
Link copied to clipboard
Throwable
Link copied to clipboard
open class Throwable(message: String?, cause: Throwable?)

The base class for all errors and exceptions. Only instances of this class can be thrown or caught.

open class Throwable(message: String?, cause: Throwable?)

The base class for all errors and exceptions. Only instances of this class can be thrown or caught.

open class Throwable(message: String?, cause: Throwable?)

The base class for all errors and exceptions. Only instances of this class can be thrown or caught.

Throws
Link copied to clipboard
expect annotation class Throws(exceptionClasses: KClass<out Throwable>)

This annotation indicates what exceptions should be declared by a function when compiled to a platform method in Kotlin/JVM and Kotlin/Native.

Since Kotlin

1.4
actual typealias Throws = Throws
actual annotation class Throws(exceptionClasses: KClass<out Throwable>)

This annotation indicates what exceptions should be declared by a function when compiled to a platform method.

Since Kotlin

1.4
Triple
Link copied to clipboard
data class Triple<out A, out B, out C>(first: A, second: B, third: C) : Serializable

Represents a triad of values

TypeCastException
Link copied to clipboard
open class TypeCastException : ClassCastException
open class TypeCastException : ClassCastException
UByte
Link copied to clipboard
value class UByte : Comparable<UByte>
UByteArray
Link copied to clipboard
value class UByteArray : Collection<UByte>
UInt
Link copied to clipboard
value class UInt : Comparable<UInt>
UIntArray
Link copied to clipboard
value class UIntArray : Collection<UInt>
ULong
Link copied to clipboard
value class ULong : Comparable<ULong>
ULongArray
Link copied to clipboard
value class ULongArray : Collection<ULong>
UninitializedPropertyAccessException
Link copied to clipboard
expect class UninitializedPropertyAccessException(message: String?, cause: Throwable?) : RuntimeException
actual class UninitializedPropertyAccessException(message: String?, cause: Throwable?) : RuntimeException
actual open class UninitializedPropertyAccessException(message: String?, cause: Throwable?) : RuntimeException
actual open class UninitializedPropertyAccessException(message: String?, cause: Throwable?) : RuntimeException
Unit
Link copied to clipboard
object Unit

The type with only one value: the Unit object. This type corresponds to the void type in Java.

object Unit

The type with only one value: the Unit object. This type corresponds to the void type in Java.

object Unit

The type with only one value: the Unit object. This type corresponds to the void type in Java.

object Unit

The type with only one value: the Unit object.

UnsafeVariance
Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.TYPE])
annotation class UnsafeVariance

Suppresses errors about variance conflict

@Target(allowedTargets = [AnnotationTarget.TYPE])
annotation class UnsafeVariance

Suppresses errors about variance conflict

@Target(allowedTargets = [AnnotationTarget.TYPE])
annotation class UnsafeVariance

Suppresses errors about variance conflict

UnsupportedOperationException
Link copied to clipboard
expect open class UnsupportedOperationException(message: String?, cause: Throwable?) : RuntimeException
actual typealias UnsupportedOperationException = UnsupportedOperationException
actual open class UnsupportedOperationException(message: String?, cause: Throwable?) : RuntimeException
actual open class UnsupportedOperationException(message: String?, cause: Throwable?) : RuntimeException
UseExperimental
Link copied to clipboard

Allows to use experimental API denoted by the given markers in the annotated file, declaration, or expression. If a declaration is annotated with UseExperimental, its usages are not required to opt-in to that experimental API.

Since Kotlin

1.2
UShort
Link copied to clipboard
value class UShort : Comparable<UShort>
UShortArray
Link copied to clipboard
value class UShortArray : Collection<UShort>

Functions

addSuppressed
Link copied to clipboard
expect fun Throwable.addSuppressed(exception: Throwable)

When supported by the platform, adds the specified exception to the list of exceptions that were suppressed in order to deliver this exception.

Since Kotlin

1.4
actual fun Throwable.addSuppressed(exception: Throwable)

When supported by the platform, adds the specified exception to the list of exceptions that were suppressed in order to deliver this exception.

Since Kotlin

1.1
actual fun Throwable.addSuppressed(exception: Throwable)

Adds the specified exception to the list of exceptions that were suppressed in order to deliver this exception.

Since Kotlin

1.4
actual fun Throwable.addSuppressed(exception: Throwable)

Adds the specified exception to the list of exceptions that were suppressed in order to deliver this exception.

Since Kotlin

1.4
also
Link copied to clipboard
inline fun <T> T.also(block: (T) -> Unit): T

Calls the specified function block with this value as its argument and returns this value.

Since Kotlin

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

Performs a bitwise AND operation between the two values.

Since Kotlin

1.2
apply
Link copied to clipboard
inline fun <T> T.apply(block: T.() -> Unit): T

Calls the specified function block with this value as its receiver and returns this value.

arrayOf
Link copied to clipboard
inline fun <T> arrayOf(vararg elements: T): Array<T>

Returns an array containing the specified elements.

inline fun <T> arrayOf(vararg elements: T): Array<T>

Returns an array containing the specified elements.

fun <T> arrayOf(vararg elements: T): Array<T>
inline external fun <T> arrayOf(vararg elements: T): Array<T>

Returns an array containing the specified elements.

arrayOfNulls
Link copied to clipboard
fun <T> arrayOfNulls(size: Int): Array<T?>

Returns an array of objects of the given type with the given size, initialized with null values.

fun <T> arrayOfNulls(size: Int): Array<T?>

Returns an array of objects of the given type with the given size, initialized with null values.

inline fun <T> arrayOfNulls(size: Int): Array<T?>

Returns an array of objects of the given type with the given size, initialized with null values.

assert
Link copied to clipboard
inline fun assert(value: Boolean)

Throws an AssertionError if the value is false and runtime assertions have been enabled on the JVM using the -ea JVM option.

inline fun assert(value: Boolean, lazyMessage: () -> Any)

Throws an AssertionError calculated by lazyMessage if the value is false and runtime assertions have been enabled on the JVM using the -ea JVM option.

inline fun assert(value: Boolean)

Throws an AssertionError if the value is false and runtime assertions have been enabled during compilation.

inline fun assert(value: Boolean, lazyMessage: () -> Any)

Throws an AssertionError calculated by lazyMessage if the value is false and runtime assertions have been enabled during compilation.

booleanArrayOf
Link copied to clipboard
fun booleanArrayOf(vararg elements: Boolean): BooleanArray

Returns an array containing the specified boolean values.

fun booleanArrayOf(vararg elements: Boolean): BooleanArray

Returns an array containing the specified boolean values.

fun booleanArrayOf(vararg elements: Boolean): BooleanArray
inline fun booleanArrayOf(vararg elements: Boolean): BooleanArray

Returns an array containing the specified boolean values.

byteArrayOf
Link copied to clipboard
fun byteArrayOf(vararg elements: Byte): ByteArray

Returns an array containing the specified Byte numbers.

fun byteArrayOf(vararg elements: Byte): ByteArray

Returns an array containing the specified Byte numbers.

fun byteArrayOf(vararg elements: Byte): ByteArray
inline fun byteArrayOf(vararg elements: Byte): ByteArray

Returns an array containing the specified Byte numbers.

Char
Link copied to clipboard
inline fun Char(code: Int): Char

Creates a Char with the specified code, or throws an exception if the code is out of Char.MIN_VALUE.code..Char.MAX_VALUE.code.

Since Kotlin

1.5
expect fun Char(code: UShort): Char

Creates a Char with the specified code.

Since Kotlin

1.5
actual inline fun Char(code: UShort): Char

Creates a Char with the specified code.

Since Kotlin

1.5
actual inline fun Char(code: UShort): Char

Creates a Char with the specified code.

Since Kotlin

1.5
actual inline fun Char(code: UShort): Char

Creates a Char with the specified code.

Since Kotlin

1.5
charArrayOf
Link copied to clipboard
fun charArrayOf(vararg elements: Char): CharArray

Returns an array containing the specified characters.

fun charArrayOf(vararg elements: Char): CharArray

Returns an array containing the specified characters.

fun charArrayOf(vararg elements: Char): CharArray
inline fun charArrayOf(vararg elements: Char): CharArray

Returns an array containing the specified characters.

check
Link copied to clipboard
inline fun check(value: Boolean)

Throws an IllegalStateException if the value is false.

inline fun check(value: Boolean, lazyMessage: () -> Any)

Throws an IllegalStateException with the result of calling lazyMessage if the value is false.

checkNotNull
Link copied to clipboard
inline fun <T : Any> checkNotNull(value: T?): T

Throws an IllegalStateException if the value is null. Otherwise returns the not null value.

inline fun <T : Any> checkNotNull(value: T?, lazyMessage: () -> Any): T

Throws an IllegalStateException with the result of calling lazyMessage if the value is null. Otherwise returns the not null value.

countLeadingZeroBits
Link copied to clipboard
inline fun Byte.countLeadingZeroBits(): Int

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

Since Kotlin

1.4
expect fun Int.countLeadingZeroBits(): Int

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

Since Kotlin

1.4
expect fun Long.countLeadingZeroBits(): Int

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

Since Kotlin

1.4
inline fun Short.countLeadingZeroBits(): Int

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

Since Kotlin

1.4
inline fun UByte.countLeadingZeroBits(): Int

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

Since Kotlin

1.5
inline fun UInt.countLeadingZeroBits(): Int

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

Since Kotlin

1.5
inline fun ULong.countLeadingZeroBits(): Int

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

Since Kotlin

1.5
inline fun UShort.countLeadingZeroBits(): Int

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

Since Kotlin

1.5
actual inline fun Int.countLeadingZeroBits(): Int

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

Since Kotlin

1.4
actual inline fun Long.countLeadingZeroBits(): Int

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

Since Kotlin

1.4
actual inline fun Int.countLeadingZeroBits(): Int

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

Since Kotlin

1.4
actual fun Long.countLeadingZeroBits(): Int

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

Since Kotlin

1.4
actual fun Int.countLeadingZeroBits(): Int

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

Since Kotlin

1.4
actual fun Long.countLeadingZeroBits(): Int

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

Since Kotlin

1.4
countOneBits
Link copied to clipboard
inline fun Byte.countOneBits(): Int

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

Since Kotlin

1.4
expect fun Int.countOneBits(): Int

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

Since Kotlin

1.4
expect fun Long.countOneBits(): Int

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

Since Kotlin

1.4
inline fun Short.countOneBits(): Int

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

Since Kotlin

1.4
inline fun UByte.countOneBits(): Int

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

Since Kotlin

1.5
inline fun UInt.countOneBits(): Int

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

Since Kotlin

1.5
inline fun ULong.countOneBits(): Int

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

Since Kotlin

1.5
inline fun UShort.countOneBits(): Int

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

Since Kotlin

1.5
actual inline fun Int.countOneBits(): Int

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

Since Kotlin

1.4
actual inline fun Long.countOneBits(): Int

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

Since Kotlin

1.4
actual fun Int.countOneBits(): Int

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

Since Kotlin

1.4
actual fun Long.countOneBits(): Int

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

Since Kotlin

1.4
actual external fun Int.countOneBits(): Int

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

Since Kotlin

1.4
actual external fun Long.countOneBits(): Int

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

Since Kotlin

1.4
countTrailingZeroBits
Link copied to clipboard
inline fun Byte.countTrailingZeroBits(): Int

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

Since Kotlin

1.4
expect fun Int.countTrailingZeroBits(): Int

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

Since Kotlin

1.4
expect fun Long.countTrailingZeroBits(): Int

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

Since Kotlin

1.4
inline fun Short.countTrailingZeroBits(): Int

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

Since Kotlin

1.4
inline fun UByte.countTrailingZeroBits(): Int

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

Since Kotlin

1.5
inline fun UInt.countTrailingZeroBits(): Int

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

Since Kotlin

1.5
inline fun ULong.countTrailingZeroBits(): Int

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

Since Kotlin

1.5
inline fun UShort.countTrailingZeroBits(): Int

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

Since Kotlin

1.5
actual inline fun Int.countTrailingZeroBits(): Int

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

Since Kotlin

1.4
actual inline fun Long.countTrailingZeroBits(): Int

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

Since Kotlin

1.4
actual fun Int.countTrailingZeroBits(): Int

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

Since Kotlin

1.4
actual fun Long.countTrailingZeroBits(): Int

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

Since Kotlin

1.4
actual fun Int.countTrailingZeroBits(): Int

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

Since Kotlin

1.4
actual fun Long.countTrailingZeroBits(): Int

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

Since Kotlin

1.4
dec
Link copied to clipboard
inline operator fun BigDecimal.dec(): BigDecimal

Enables the use of the unary -- operator for BigDecimal instances.

Since Kotlin

1.2
inline operator fun BigInteger.dec(): BigInteger

Enables the use of the -- operator for BigInteger instances.

Since Kotlin

1.2
div
Link copied to clipboard
inline operator fun BigDecimal.div(other: BigDecimal): BigDecimal

Enables the use of the / operator for BigDecimal instances.

inline operator fun BigInteger.div(other: BigInteger): BigInteger

Enables the use of the / operator for BigInteger instances.

doubleArrayOf
Link copied to clipboard
fun doubleArrayOf(vararg elements: Double): DoubleArray

Returns an array containing the specified Double numbers.

fun doubleArrayOf(vararg elements: Double): DoubleArray

Returns an array containing the specified Double numbers.

fun doubleArrayOf(vararg elements: Double): DoubleArray
inline fun doubleArrayOf(vararg elements: Double): DoubleArray

Returns an array containing the specified Double numbers.

emptyArray
Link copied to clipboard
inline fun <T> emptyArray(): Array<T>

Returns an empty array of the specified type T.

inline fun <T> emptyArray(): Array<T>

Returns an empty array of the specified type T.

inline fun <T> emptyArray(): Array<T>

Returns an empty array of the specified type T.

external fun <T> emptyArray(): Array<T>
enumValueOf
Link copied to clipboard
inline fun <T : Enum<T>> enumValueOf(name: String): T

Returns an enum entry with specified name.

Since Kotlin

1.1
inline fun <T : Enum<T>> enumValueOf(name: String): T

Returns an enum entry with specified name.

Since Kotlin

1.1
inline fun <T : Enum<T>> enumValueOf(name: String): T

Returns an enum entry with specified name.

enumValues
Link copied to clipboard
inline fun <T : Enum<T>> enumValues(): Array<T>

Returns an array containing enum T entries.

Since Kotlin

1.1
inline fun <T : Enum<T>> enumValues(): Array<T>

Returns an array containing enum T entries.

Since Kotlin

1.1
inline fun <T : Enum<T>> enumValues(): Array<T>

Returns an array containing enum T entries.

error
Link copied to clipboard
inline fun error(message: Any): Nothing

Throws an IllegalStateException with the given message.

floatArrayOf
Link copied to clipboard
fun floatArrayOf(vararg elements: Float): FloatArray

Returns an array containing the specified Float numbers.

fun floatArrayOf(vararg elements: Float): FloatArray

Returns an array containing the specified Float numbers.

fun floatArrayOf(vararg elements: Float): FloatArray
inline fun floatArrayOf(vararg elements: Float): FloatArray

Returns an array containing the specified Float numbers.

floorDiv
Link copied to clipboard
inline fun Byte.floorDiv(other: Byte): Int
inline fun Byte.floorDiv(other: Int): Int
inline fun Byte.floorDiv(other: Long): Long
inline fun Byte.floorDiv(other: Short): Int
inline fun Int.floorDiv(other: Byte): Int
inline fun Int.floorDiv(other: Int): Int
inline fun Int.floorDiv(other: Long): Long
inline fun Int.floorDiv(other: Short): Int
inline fun Long.floorDiv(other: Byte): Long
inline fun Long.floorDiv(other: Int): Long
inline fun Long.floorDiv(other: Long): Long
inline fun Long.floorDiv(other: Short): Long
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
fold
Link copied to clipboard
inline fun <R, T> Result<T>.fold(onSuccess: (T) -> R, onFailure: (exception: Throwable) -> R): R

Returns the result of onSuccess for the encapsulated value if this instance represents success or the result of onFailure function for the encapsulated Throwable exception if it is failure.

Since Kotlin

1.3
fromBits
Link copied to clipboard
expect fun Double.Companion.fromBits(bits: Long): Double

Returns the Double value corresponding to a given bit representation.

Since Kotlin

1.2
expect fun Float.Companion.fromBits(bits: Int): Float

Returns the Float value corresponding to a given bit representation.

Since Kotlin

1.2
actual inline fun Double.Companion.fromBits(bits: Long): Double

Returns the Double value corresponding to a given bit representation.

Since Kotlin

1.2
actual inline fun Float.Companion.fromBits(bits: Int): Float

Returns the Float value corresponding to a given bit representation.

Since Kotlin

1.2
actual inline fun Double.Companion.fromBits(bits: Long): Double

Returns the Double value corresponding to a given bit representation.

Since Kotlin

1.2
actual inline fun Float.Companion.fromBits(bits: Int): Float

Returns the Float value corresponding to a given bit representation.

Since Kotlin

1.2
actual inline fun Double.Companion.fromBits(bits: Long): Double

Returns the Double value corresponding to a given bit representation.

Since Kotlin

1.2
actual inline fun Float.Companion.fromBits(bits: Int): Float

Returns the Float value corresponding to a given bit representation.

Since Kotlin

1.2
getOrDefault
Link copied to clipboard
inline fun <R, T : R> Result<T>.getOrDefault(defaultValue: R): R

Returns the encapsulated value if this instance represents success or the defaultValue if it is failure.

Since Kotlin

1.3
getOrElse
Link copied to clipboard
inline fun <R, T : R> Result<T>.getOrElse(onFailure: (exception: Throwable) -> R): R

Returns the encapsulated value if this instance represents success or the result of onFailure function for the encapsulated Throwable exception if it is failure.

Since Kotlin

1.3
getOrThrow
Link copied to clipboard
inline fun <T> Result<T>.getOrThrow(): T

Returns the encapsulated value if this instance represents success or throws the encapsulated Throwable exception if it is failure.

Since Kotlin

1.3
getValue
Link copied to clipboard
inline operator fun <T> Lazy<T>.getValue(thisRef: Any?, property: KProperty<*>): T

An extension to delegate a read-only property of type T to an instance of Lazy.

inline operator fun <V> KProperty0<V>.getValue(thisRef: Any?, property: KProperty<*>): V

An extension operator that allows delegating a read-only property of type V to a property reference to a property of type V or its subtype.

Since Kotlin

1.4
inline operator fun <T, V> KProperty1<T, V>.getValue(thisRef: T, property: KProperty<*>): V

An extension operator that allows delegating a read-only member or extension property of type V to a property reference to a member or extension property of type V or its subtype.

Since Kotlin

1.4
hashCode
Link copied to clipboard
inline fun Any?.hashCode(): Int

Returns a hash code value for the object or zero if the object is null.

Since Kotlin

1.3
inc
Link copied to clipboard
inline operator fun BigDecimal.inc(): BigDecimal

Enables the use of the unary ++ operator for BigDecimal instances.

Since Kotlin

1.2
inline operator fun BigInteger.inc(): BigInteger

Enables the use of the ++ operator for BigInteger instances.

Since Kotlin

1.2
intArrayOf
Link copied to clipboard
fun intArrayOf(vararg elements: Int): IntArray

Returns an array containing the specified Int numbers.

fun intArrayOf(vararg elements: Int): IntArray

Returns an array containing the specified Int numbers.

fun intArrayOf(vararg elements: Int): IntArray
inline fun intArrayOf(vararg elements: Int): IntArray

Returns an array containing the specified Int numbers.

inv
Link copied to clipboard
inline fun BigInteger.inv(): BigInteger

Inverts the bits including the sign bit in this value.

Since Kotlin

1.2
invoke
Link copied to clipboard
operator fun <T, R> DeepRecursiveFunction<T, R>.invoke(value: T): R

Initiates a call to this deep recursive function, forming a root of the call tree.

Since Kotlin

1.4
isFinite
Link copied to clipboard
expect fun Double.isFinite(): Boolean
expect fun Float.isFinite(): Boolean
actual inline fun Double.isFinite(): Boolean
actual inline fun Float.isFinite(): Boolean

Returns true if the argument is a finite floating-point value; returns false otherwise (for NaN and infinity arguments).

actual fun Double.isFinite(): Boolean
actual fun Float.isFinite(): Boolean

Returns true if the argument is a finite floating-point value; returns false otherwise (for NaN and infinity arguments).

actual external fun Double.isFinite(): Boolean
actual external fun Float.isFinite(): Boolean

Returns true if the argument is a finite floating-point value; returns false otherwise (for NaN and infinity arguments).

isInfinite
Link copied to clipboard
expect fun Double.isInfinite(): Boolean
expect fun Float.isInfinite(): Boolean
actual inline fun Double.isInfinite(): Boolean
actual inline fun Float.isInfinite(): Boolean

Returns true if this value is infinitely large in magnitude.

actual fun Double.isInfinite(): Boolean
actual fun Float.isInfinite(): Boolean

Returns true if this value is infinitely large in magnitude.

actual external fun Double.isInfinite(): Boolean
actual external fun Float.isInfinite(): Boolean

Returns true if this value is infinitely large in magnitude.

isNaN
Link copied to clipboard
expect fun Double.isNaN(): Boolean
expect fun Float.isNaN(): Boolean
actual inline fun Double.isNaN(): Boolean
actual inline fun Float.isNaN(): Boolean

Returns true if the specified number is a Not-a-Number (NaN) value, false otherwise.

actual fun Double.isNaN(): Boolean
actual fun Float.isNaN(): Boolean

Returns true if the specified number is a Not-a-Number (NaN) value, false otherwise.

actual external fun Double.isNaN(): Boolean
actual external fun Float.isNaN(): Boolean

Returns true if the specified number is a Not-a-Number (NaN) value, false otherwise.

lazy
Link copied to clipboard
expect fun <T> lazy(initializer: () -> T): Lazy<T>
expect fun <T> lazy(lock: Any?, initializer: () -> T): Lazy<T>
expect fun <T> lazy(mode: LazyThreadSafetyMode, initializer: () -> T): Lazy<T>

Creates a new instance of the Lazy that uses the specified initialization function initializer.

actual fun <T> lazy(initializer: () -> T): Lazy<T>
actual fun <T> lazy(lock: Any?, initializer: () -> T): Lazy<T>

Creates a new instance of the Lazy that uses the specified initialization function initializer and the default thread-safety mode LazyThreadSafetyMode.SYNCHRONIZED.

actual fun <T> lazy(mode: LazyThreadSafetyMode, initializer: () -> T): Lazy<T>

Creates a new instance of the Lazy that uses the specified initialization function initializer and thread-safety mode.

actual fun <T> lazy(initializer: () -> T): Lazy<T>
actual fun <T> lazy(lock: Any?, initializer: () -> T): Lazy<T>
actual fun <T> lazy(mode: LazyThreadSafetyMode, initializer: () -> T): Lazy<T>

Creates a new instance of the Lazy that uses the specified initialization function initializer.

actual fun <T> lazy(initializer: () -> T): Lazy<T>
actual fun <T> lazy(lock: Any?, initializer: () -> T): Lazy<T>

Creates a new instance of the Lazy that uses the specified initialization function initializer and the default thread-safety mode LazyThreadSafetyMode.SYNCHRONIZED.

actual fun <T> lazy(mode: LazyThreadSafetyMode, initializer: () -> T): Lazy<T>

Creates a new instance of the Lazy that uses the specified initialization function initializer and thread-safety mode.

lazyOf
Link copied to clipboard
fun <T> lazyOf(value: T): Lazy<T>

Creates a new instance of the Lazy that is already initialized with the specified value.

let
Link copied to clipboard
inline fun <T, R> T.let(block: (T) -> R): R

Calls the specified function block with this value as its argument and returns its result.

longArrayOf
Link copied to clipboard
fun longArrayOf(vararg elements: Long): LongArray

Returns an array containing the specified Long numbers.

fun longArrayOf(vararg elements: Long): LongArray

Returns an array containing the specified Long numbers.

fun longArrayOf(vararg elements: Long): LongArray
inline fun longArrayOf(vararg elements: Long): LongArray

Returns an array containing the specified Long numbers.

map
Link copied to clipboard
inline fun <R, T> Result<T>.map(transform: (T) -> R): Result<R>

Returns the encapsulated result of the given transform function applied to the encapsulated value if this instance represents success or the original encapsulated Throwable exception if it is failure.

Since Kotlin

1.3
mapCatching
Link copied to clipboard
inline fun <R, T> Result<T>.mapCatching(transform: (T) -> R): Result<R>

Returns the encapsulated result of the given transform function applied to the encapsulated value if this instance represents success or the original encapsulated Throwable exception if it is failure.

Since Kotlin

1.3
minus
Link copied to clipboard
inline operator fun BigDecimal.minus(other: BigDecimal): BigDecimal

Enables the use of the - operator for BigDecimal instances.

inline operator fun BigInteger.minus(other: BigInteger): BigInteger

Enables the use of the - operator for BigInteger instances.

mod
Link copied to clipboard
inline fun Byte.mod(other: Byte): Byte
inline fun Byte.mod(other: Int): Int
inline fun Byte.mod(other: Long): Long
inline fun Byte.mod(other: Short): Short
inline fun Double.mod(other: Double): Double
inline fun Double.mod(other: Float): Double
inline fun Float.mod(other: Double): Double
inline fun Float.mod(other: Float): Float
inline fun Int.mod(other: Byte): Byte
inline fun Int.mod(other: Int): Int
inline fun Int.mod(other: Long): Long
inline fun Int.mod(other: Short): Short
inline fun Long.mod(other: Byte): Byte
inline fun Long.mod(other: Int): Int
inline fun Long.mod(other: Long): Long
inline fun Long.mod(other: Short): Short
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 by the other value.

Since Kotlin

1.5
onFailure
Link copied to clipboard
inline fun <T> Result<T>.onFailure(action: (exception: Throwable) -> Unit): Result<T>

Performs the given action on the encapsulated Throwable exception if this instance represents failure. Returns the original Result unchanged.

Since Kotlin

1.3
onSuccess
Link copied to clipboard
inline fun <T> Result<T>.onSuccess(action: (T) -> Unit): Result<T>

Performs the given action on the encapsulated value if this instance represents success. Returns the original Result unchanged.

Since Kotlin

1.3
or
Link copied to clipboard
infix inline fun BigInteger.or(other: BigInteger): BigInteger

Performs a bitwise OR operation between the two values.

Since Kotlin

1.2
plus
Link copied to clipboard
operator fun String?.plus(other: Any?): String

Concatenates this string with the string representation of the given other object. If either the receiver or the other object are null, they are represented as the string "null".

inline operator fun BigDecimal.plus(other: BigDecimal): BigDecimal

Enables the use of the + operator for BigDecimal instances.

inline operator fun BigInteger.plus(other: BigInteger): BigInteger

Enables the use of the + operator for BigInteger instances.

operator fun String?.plus(other: Any?): String

Concatenates this string with the string representation of the given other object. If either the receiver or the other object are null, they are represented as the string "null".

inline operator fun String?.plus(other: Any?): String
printStackTrace
Link copied to clipboard
expect fun Throwable.printStackTrace()

Prints the detailed description of this throwable to the standard output or standard error output.

Since Kotlin

1.4
actual inline fun Throwable.printStackTrace()

Prints the detailed description of this throwable to the standard error output.

inline fun Throwable.printStackTrace(stream: PrintStream)

Prints the detailed description of this throwable to the specified stream.

inline fun Throwable.printStackTrace(writer: PrintWriter)

Prints the detailed description of this throwable to the specified writer.

actual fun Throwable.printStackTrace()

Prints the detailed description of this throwable to console error output.

Since Kotlin

1.4
actual inline fun Throwable.printStackTrace()

Prints the detailed description of this throwable to the standard output.

Since Kotlin

1.4
recover
Link copied to clipboard
inline fun <R, T : R> Result<T>.recover(transform: (exception: Throwable) -> R): Result<R>

Returns the encapsulated result of the given transform function applied to the encapsulated Throwable exception if this instance represents failure or the original encapsulated value if it is success.

Since Kotlin

1.3
recoverCatching
Link copied to clipboard
inline fun <R, T : R> Result<T>.recoverCatching(transform: (exception: Throwable) -> R): Result<R>

Returns the encapsulated result of the given transform function applied to the encapsulated Throwable exception if this instance represents failure or the original encapsulated value if it is success.

Since Kotlin

1.3
rem
Link copied to clipboard
inline operator fun BigDecimal.rem(other: BigDecimal): BigDecimal

Enables the use of the % operator for BigDecimal instances.

inline operator fun BigInteger.rem(other: BigInteger): BigInteger

Enables the use of the % operator for BigInteger instances.

Since Kotlin

1.1
repeat
Link copied to clipboard
inline fun repeat(times: Int, action: (Int) -> Unit)

Executes the given function action specified number of times.

require
Link copied to clipboard
inline fun require(value: Boolean)

Throws an IllegalArgumentException if the value is false.

inline fun require(value: Boolean, lazyMessage: () -> Any)

Throws an IllegalArgumentException with the result of calling lazyMessage if the value is false.

requireNotNull
Link copied to clipboard
inline fun <T : Any> requireNotNull(value: T?): T

Throws an IllegalArgumentException if the value is null. Otherwise returns the not null value.

inline fun <T : Any> requireNotNull(value: T?, lazyMessage: () -> Any): T

Throws an IllegalArgumentException with the result of calling lazyMessage if the value is null. Otherwise returns the not null value.

rotateLeft
Link copied to clipboard
fun Byte.rotateLeft(bitCount: Int): Byte

Rotates the binary representation of this Byte 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.3
expect fun Int.rotateLeft(bitCount: Int): Int

Rotates the binary representation of this Int 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.3
expect fun Long.rotateLeft(bitCount: Int): Long

Rotates the binary representation of this Long 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.3
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.3
inline fun UByte.rotateLeft(bitCount: Int): UByte

Rotates the binary representation of this UByte 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.3
inline fun UInt.rotateLeft(bitCount: Int): UInt

Rotates the binary representation of this UInt 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.3
inline fun ULong.rotateLeft(bitCount: Int): ULong

Rotates the binary representation of this ULong 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.3
inline fun UShort.rotateLeft(bitCount: Int): UShort

Rotates the binary representation of this UShort 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.3
@ExperimentalStdlibApi
actual inline fun Int.rotateLeft(bitCount: Int): Int

Rotates the binary representation of this Int 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.3
@ExperimentalStdlibApi
actual inline fun Long.rotateLeft(bitCount: Int): Long

Rotates the binary representation of this Long 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.3
@ExperimentalStdlibApi
actual fun Int.rotateLeft(bitCount: Int): Int

Rotates the binary representation of this Int 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.3
@ExperimentalStdlibApi
actual fun Long.rotateLeft(bitCount: Int): Long

Rotates the binary representation of this Long 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.3
@ExperimentalStdlibApi
actual fun Int.rotateLeft(bitCount: Int): Int

Rotates the binary representation of this Int 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.3
@ExperimentalStdlibApi
actual fun Long.rotateLeft(bitCount: Int): Long

Rotates the binary representation of this Long 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.3
rotateRight
Link copied to clipboard
fun Byte.rotateRight(bitCount: Int): Byte

Rotates the binary representation of this Byte 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.3
expect fun Int.rotateRight(bitCount: Int): Int

Rotates the binary representation of this Int 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.3
expect fun Long.rotateRight(bitCount: Int): Long

Rotates the binary representation of this Long 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.3
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.3
inline fun UByte.rotateRight(bitCount: Int): UByte

Rotates the binary representation of this UByte 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.3
inline fun UInt.rotateRight(bitCount: Int): UInt

Rotates the binary representation of this UInt 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.3
inline fun ULong.rotateRight(bitCount: Int): ULong

Rotates the binary representation of this ULong 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.3
inline fun UShort.rotateRight(bitCount: Int): UShort

Rotates the binary representation of this UShort 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.3
@ExperimentalStdlibApi
actual inline fun Int.rotateRight(bitCount: Int): Int

Rotates the binary representation of this Int 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.3
@ExperimentalStdlibApi
actual inline fun Long.rotateRight(bitCount: Int): Long

Rotates the binary representation of this Long 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.3
@ExperimentalStdlibApi
actual fun Int.rotateRight(bitCount: Int): Int

Rotates the binary representation of this Int 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.3
@ExperimentalStdlibApi
actual inline fun Long.rotateRight(bitCount: Int): Long

Rotates the binary representation of this Long 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.3
@ExperimentalStdlibApi
actual fun Int.rotateRight(bitCount: Int): Int

Rotates the binary representation of this Int 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.3
@ExperimentalStdlibApi
actual inline fun Long.rotateRight(bitCount: Int): Long

Rotates the binary representation of this Long 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.3
run
Link copied to clipboard
inline fun <R> run(block: () -> R): R

Calls the specified function block and returns its result.

inline fun <T, R> T.run(block: T.() -> R): R

Calls the specified function block with this value as its receiver and returns its result.

runCatching
Link copied to clipboard
inline fun <R> runCatching(block: () -> R): Result<R>

Calls the specified function block and returns its encapsulated result if invocation was successful, catching any Throwable exception that was thrown from the block function execution and encapsulating it as a failure.

Since Kotlin

1.3
inline fun <T, R> T.runCatching(block: T.() -> R): Result<R>

Calls the specified function block with this value as its receiver and returns its encapsulated result if invocation was successful, catching any Throwable exception that was thrown from the block function execution and encapsulating it as a failure.

Since Kotlin

1.3
setValue
Link copied to clipboard
inline operator fun <V> KMutableProperty0<V>.setValue(thisRef: Any?, property: KProperty<*>, value: V)

An extension operator that allows delegating a mutable property of type V to a property reference to a mutable property of the same type V.

Since Kotlin

1.4
inline operator fun <T, V> KMutableProperty1<T, V>.setValue(thisRef: T, property: KProperty<*>, value: V)

An extension operator that allows delegating a mutable member or extension property of type V to a property reference to a member or extension mutable property of the same type V.

Since Kotlin

1.4
shl
Link copied to clipboard
infix inline fun BigInteger.shl(n: Int): BigInteger

Shifts this value left by the n number of bits.

Since Kotlin

1.2
shortArrayOf
Link copied to clipboard
fun shortArrayOf(vararg elements: Short): ShortArray

Returns an array containing the specified Short numbers.

fun shortArrayOf(vararg elements: Short): ShortArray

Returns an array containing the specified Short numbers.

fun shortArrayOf(vararg elements: Short): ShortArray
inline fun shortArrayOf(vararg elements: Short): ShortArray

Returns an array containing the specified Short numbers.

shr
Link copied to clipboard
infix inline fun BigInteger.shr(n: Int): BigInteger

Shifts this value right by the n number of bits, filling the leftmost bits with copies of the sign bit.

Since Kotlin

1.2
stackTraceToString
Link copied to clipboard
expect fun Throwable.stackTraceToString(): String

Returns the detailed description of this throwable with its stack trace.

Since Kotlin

1.4
actual fun Throwable.stackTraceToString(): String

Returns the detailed description of this throwable with its stack trace.

Since Kotlin

1.4
actual fun Throwable.stackTraceToString(): String

Returns the detailed description of this throwable with its stack trace.

Since Kotlin

1.4
actual fun Throwable.stackTraceToString(): String

Returns the detailed description of this throwable with its stack trace.

Since Kotlin

1.4
suspend
Link copied to clipboard
inline fun <R> suspend(noinline block: suspend () -> R): suspend () -> R
synchronized
Link copied to clipboard
expect inline fun <R> synchronized(lock: Any, block: () -> R): R
actual inline fun <R> synchronized(lock: Any, block: () -> R): R

Executes the given function block while holding the monitor of the given object lock.

actual inline fun <R> synchronized(lock: Any, block: () -> R): R
takeHighestOneBit
Link copied to clipboard
inline fun Byte.takeHighestOneBit(): Byte

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

Since Kotlin

1.4
expect fun Int.takeHighestOneBit(): Int

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

Since Kotlin

1.4
expect fun Long.takeHighestOneBit(): Long

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

Since Kotlin

1.4
inline fun Short.takeHighestOneBit(): Short

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
inline fun UByte.takeHighestOneBit(): UByte

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

Since Kotlin

1.5
inline fun UInt.takeHighestOneBit(): UInt

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

Since Kotlin

1.5
inline fun ULong.takeHighestOneBit(): ULong

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

Since Kotlin

1.5
inline fun UShort.takeHighestOneBit(): UShort

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

Since Kotlin

1.5
actual inline fun Int.takeHighestOneBit(): Int

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

Since Kotlin

1.4
actual inline fun Long.takeHighestOneBit(): Long

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

Since Kotlin

1.4
actual fun Int.takeHighestOneBit(): Int

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

Since Kotlin

1.4
actual fun Long.takeHighestOneBit(): Long

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

Since Kotlin

1.4
actual fun Int.takeHighestOneBit(): Int

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

Since Kotlin

1.4
actual fun Long.takeHighestOneBit(): Long

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

Since Kotlin

1.4
takeIf
Link copied to clipboard
inline fun <T> T.takeIf(predicate: (T) -> Boolean): T?

Returns this value if it satisfies the given predicate or null, if it doesn't.

Since Kotlin

1.1
takeLowestOneBit
Link copied to clipboard
inline fun Byte.takeLowestOneBit(): Byte

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

Since Kotlin

1.4
expect fun Int.takeLowestOneBit(): Int

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

Since Kotlin

1.4
expect fun Long.takeLowestOneBit(): Long

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

Since Kotlin

1.4
inline fun Short.takeLowestOneBit(): Short

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
inline fun UByte.takeLowestOneBit(): UByte

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

Since Kotlin

1.5
inline fun UInt.takeLowestOneBit(): UInt

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

Since Kotlin

1.5
inline fun ULong.takeLowestOneBit(): ULong

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

Since Kotlin

1.5
inline fun UShort.takeLowestOneBit(): UShort

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

Since Kotlin

1.5
actual inline fun Int.takeLowestOneBit(): Int

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

Since Kotlin

1.4
actual inline fun Long.takeLowestOneBit(): Long

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

Since Kotlin

1.4
actual fun Int.takeLowestOneBit(): Int

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

Since Kotlin

1.4
actual fun Long.takeLowestOneBit(): Long

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

Since Kotlin

1.4
actual fun Int.takeLowestOneBit(): Int

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

Since Kotlin

1.4
actual fun Long.takeLowestOneBit(): Long

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

Since Kotlin

1.4
takeUnless
Link copied to clipboard
inline fun <T> T.takeUnless(predicate: (T) -> Boolean): T?

Returns this value if it does not satisfy the given predicate or null, if it does.

Since Kotlin

1.1
times
Link copied to clipboard
inline operator fun BigDecimal.times(other: BigDecimal): BigDecimal

Enables the use of the * operator for BigDecimal instances.

inline operator fun BigInteger.times(other: BigInteger): BigInteger

Enables the use of the * operator for BigInteger instances.

to
Link copied to clipboard
infix fun <A, B> A.to(that: B): Pair<A, B>

Creates a tuple of type Pair from this and that.

toBigDecimal
Link copied to clipboard
inline fun BigInteger.toBigDecimal(): BigDecimal

Returns the value of this BigInteger number as a BigDecimal.

Since Kotlin

1.2
inline fun Double.toBigDecimal(): BigDecimal
inline fun Double.toBigDecimal(mathContext: MathContext): BigDecimal

Returns the value of this Double number as a BigDecimal.

Since Kotlin

1.2
inline fun Float.toBigDecimal(): BigDecimal
inline fun Float.toBigDecimal(mathContext: MathContext): BigDecimal

Returns the value of this Float number as a BigDecimal.

Since Kotlin

1.2
inline fun Int.toBigDecimal(): BigDecimal
inline fun Int.toBigDecimal(mathContext: MathContext): BigDecimal

Returns the value of this Int number as a BigDecimal.

Since Kotlin

1.2
inline fun Long.toBigDecimal(): BigDecimal
inline fun Long.toBigDecimal(mathContext: MathContext): BigDecimal

Returns the value of this Long number as a BigDecimal.

Since Kotlin

1.2
inline fun BigInteger.toBigDecimal(scale: Int = 0, mathContext: MathContext = MathContext.UNLIMITED): BigDecimal

Returns the value of this BigInteger number as a BigDecimal scaled according to the specified scale and rounded according to the settings specified with mathContext.

Since Kotlin

1.2
toBigInteger
Link copied to clipboard
inline fun Int.toBigInteger(): BigInteger

Returns the value of this Int number as a BigInteger.

Since Kotlin

1.2
inline fun Long.toBigInteger(): BigInteger

Returns the value of this Long number as a BigInteger.

Since Kotlin

1.2
toBits
Link copied to clipboard
expect fun Double.toBits(): Long

Returns a bit representation of the specified floating-point value as Long according to the IEEE 754 floating-point "double format" bit layout.

Since Kotlin

1.2
expect fun Float.toBits(): Int

Returns a bit representation of the specified floating-point value as Int according to the IEEE 754 floating-point "single format" bit layout.

Since Kotlin

1.2
actual inline fun Double.toBits(): Long

Returns a bit representation of the specified floating-point value as Long according to the IEEE 754 floating-point "double format" bit layout.

Since Kotlin

1.2
actual inline fun Float.toBits(): Int

Returns a bit representation of the specified floating-point value as Int according to the IEEE 754 floating-point "single format" bit layout.

Since Kotlin

1.2
actual fun Double.toBits(): Long

Returns a bit representation of the specified floating-point value as Long according to the IEEE 754 floating-point "double format" bit layout.

Since Kotlin

1.2
actual fun Float.toBits(): Int

Returns a bit representation of the specified floating-point value as Int according to the IEEE 754 floating-point "single format" bit layout.

Since Kotlin

1.2
actual inline fun Double.toBits(): Long

Returns a bit representation of the specified floating-point value as Long according to the IEEE 754 floating-point "double format" bit layout.

Since Kotlin

1.2
actual inline fun Float.toBits(): Int

Returns a bit representation of the specified floating-point value as Int according to the IEEE 754 floating-point "single format" bit layout.

Since Kotlin

1.2
TODO
Link copied to clipboard
inline fun TODO(): Nothing
inline fun TODO(reason: String): Nothing

Always throws NotImplementedError stating that operation is not implemented.

toList
Link copied to clipboard
fun <T> Pair<T, T>.toList(): List<T>

Converts this pair into a list.

fun <T> Triple<T, T, T>.toList(): List<T>

Converts this triple into a list.

toRawBits
Link copied to clipboard
expect fun Double.toRawBits(): Long

Returns a bit representation of the specified floating-point value as Long according to the IEEE 754 floating-point "double format" bit layout, preserving NaN values exact layout.

Since Kotlin

1.2
expect fun Float.toRawBits(): Int

Returns a bit representation of the specified floating-point value as Int according to the IEEE 754 floating-point "single format" bit layout, preserving NaN values exact layout.

Since Kotlin

1.2
actual inline fun Double.toRawBits(): Long

Returns a bit representation of the specified floating-point value as Long according to the IEEE 754 floating-point "double format" bit layout, preserving NaN values exact layout.

Since Kotlin

1.2
actual inline fun Float.toRawBits(): Int

Returns a bit representation of the specified floating-point value as Int according to the IEEE 754 floating-point "single format" bit layout, preserving NaN values exact layout.

Since Kotlin

1.2
actual fun Double.toRawBits(): Long

Returns a bit representation of the specified floating-point value as Long according to the IEEE 754 floating-point "double format" bit layout, preserving NaN values exact layout.

Since Kotlin

1.2
actual fun Float.toRawBits(): Int

Returns a bit representation of the specified floating-point value as Int according to the IEEE 754 floating-point "single format" bit layout, preserving NaN values exact layout.

Since Kotlin

1.2
actual inline fun Double.toRawBits(): Long

Returns a bit representation of the specified floating-point value as Long according to the IEEE 754 floating-point "double format" bit layout, preserving NaN values exact layout.

Since Kotlin

1.2
actual inline fun Float.toRawBits(): Int

Returns a bit representation of the specified floating-point value as Int according to the IEEE 754 floating-point "single format" bit layout, preserving NaN values exact layout.

Since Kotlin

1.2
toString
Link copied to clipboard
fun Any?.toString(): String

Returns a string representation of the object. Can be called with a null receiver, in which case it returns the string "null".

fun Any?.toString(): String

Returns a string representation of the object. Can be called with a null receiver, in which case it returns the string "null".

inline fun Any?.toString(): String
toUByte
Link copied to clipboard
inline fun Byte.toUByte(): UByte

Converts this Byte value to UByte.

Since Kotlin

1.5
inline fun Int.toUByte(): UByte

Converts this Int value to UByte.

Since Kotlin

1.5
inline fun Long.toUByte(): UByte

Converts this Long value to UByte.

Since Kotlin

1.5
inline fun Short.toUByte(): UByte

Converts this Short value to UByte.

Since Kotlin

1.5
toUInt
Link copied to clipboard
inline fun Byte.toUInt(): UInt

Converts this Byte value to UInt.

Since Kotlin

1.5
inline fun Double.toUInt(): UInt

Converts this Double value to UInt.

Since Kotlin

1.5
inline fun Float.toUInt(): UInt

Converts this Float value to UInt.

Since Kotlin

1.5
inline fun Int.toUInt(): UInt

Converts this Int value to UInt.

Since Kotlin

1.5
inline fun Long.toUInt(): UInt

Converts this Long value to UInt.

Since Kotlin

1.5
inline fun Short.toUInt(): UInt

Converts this Short value to UInt.

Since Kotlin

1.5
toULong
Link copied to clipboard
inline fun Byte.toULong(): ULong

Converts this Byte value to ULong.

Since Kotlin

1.5
inline fun Double.toULong(): ULong

Converts this Double value to ULong.

Since Kotlin

1.5
inline fun Float.toULong(): ULong

Converts this Float value to ULong.

Since Kotlin

1.5
inline fun Int.toULong(): ULong

Converts this Int value to ULong.

Since Kotlin

1.5
inline fun Long.toULong(): ULong

Converts this Long value to ULong.

Since Kotlin

1.5
inline fun Short.toULong(): ULong

Converts this Short value to ULong.

Since Kotlin

1.5
toUShort
Link copied to clipboard
inline fun Byte.toUShort(): UShort

Converts this Byte value to UShort.

Since Kotlin

1.5
inline fun Int.toUShort(): UShort

Converts this Int value to UShort.

Since Kotlin

1.5
inline fun Long.toUShort(): UShort

Converts this Long value to UShort.

Since Kotlin

1.5
inline fun Short.toUShort(): UShort

Converts this Short value to UShort.

Since Kotlin

1.5
UByteArray
Link copied to clipboard
inline fun UByteArray(size: Int, init: (Int) -> UByte): UByteArray

Creates a new array of the specified size, where each element is calculated by calling the specified init function.

Since Kotlin

1.3
ubyteArrayOf
Link copied to clipboard
inline fun ubyteArrayOf(vararg elements: UByte): UByteArray
UIntArray
Link copied to clipboard
inline fun UIntArray(size: Int, init: (Int) -> UInt): UIntArray

Creates a new array of the specified size, where each element is calculated by calling the specified init function.

Since Kotlin

1.3
uintArrayOf
Link copied to clipboard
inline fun uintArrayOf(vararg elements: UInt): UIntArray
ULongArray
Link copied to clipboard
inline fun ULongArray(size: Int, init: (Int) -> ULong): ULongArray

Creates a new array of the specified size, where each element is calculated by calling the specified init function.

Since Kotlin

1.3
ulongArrayOf
Link copied to clipboard
inline fun ulongArrayOf(vararg elements: ULong): ULongArray
unaryMinus
Link copied to clipboard
inline operator fun BigDecimal.unaryMinus(): BigDecimal

Enables the use of the unary - operator for BigDecimal instances.

inline operator fun BigInteger.unaryMinus(): BigInteger

Enables the use of the unary - operator for BigInteger instances.

use
Link copied to clipboard
inline fun <T : AutoCloseable?, R> T.use(block: (T) -> R): R

Executes the given block function on this resource and then closes it down correctly whether an exception is thrown or not.

Since Kotlin

1.2
UShortArray
Link copied to clipboard
inline fun UShortArray(size: Int, init: (Int) -> UShort): UShortArray

Creates a new array of the specified size, where each element is calculated by calling the specified init function.

Since Kotlin

1.3
ushortArrayOf
Link copied to clipboard
inline fun ushortArrayOf(vararg elements: UShort): UShortArray
with
Link copied to clipboard
inline fun <T, R> with(receiver: T, block: T.() -> R): R

Calls the specified function block with the given receiver as its receiver and returns its result.

xor
Link copied to clipboard
infix inline fun BigInteger.xor(other: BigInteger): BigInteger

Performs a bitwise XOR operation between the two values.

Since Kotlin

1.2

Properties

code
Link copied to clipboard
val Char.code: Int

Returns the code of this Char.

isInitialized
Link copied to clipboard
val KProperty0<*>.isInitialized: Boolean

Returns true if this lateinit property has been assigned a value, and false otherwise.

stackTrace
Link copied to clipboard
val Throwable.stackTrace: Array<StackTraceElement>

Returns an array of stack trace elements representing the stack trace pertaining to this throwable.

suppressedExceptions
Link copied to clipboard
expect val Throwable.suppressedExceptions: List<Throwable>

Returns a list of all exceptions that were suppressed in order to deliver this exception.

actual val Throwable.suppressedExceptions: List<Throwable>

Returns a list of all exceptions that were suppressed in order to deliver this exception.

actual val Throwable.suppressedExceptions: List<Throwable>

Returns a list of all exceptions that were suppressed in order to deliver this exception.

actual val Throwable.suppressedExceptions: List<Throwable>

Returns a list of all exceptions that were suppressed in order to deliver this exception.