kotlin / 1.9

Kotlin Standard Library

The Kotlin Standard Library provides living essentials for everyday work with Kotlin. These include:

  • Higher-order functions implementing idiomatic patterns (let, apply, use, synchronized, etc).
  • Extension functions providing querying operations for collections (eager) and sequences (lazy).
  • Various utilities for working with strings and char sequences.
  • Extensions for JDK classes making it convenient to work with files, IO, and threading.

Packages

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)

kotlin

Core functions and types, available on all supported platforms.

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)

kotlin.annotation

Library support for the Kotlin annotation facility.

Platform and version requirements: JS (1.1)

kotlin.browser

Access to top-level properties (document, window etc.) in the browser environment.

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)

kotlin.collections

Collection types, such as Iterable, Collection, List, Set, Map and related top-level and extension functions.

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)

kotlin.comparisons

Helper functions for creating Comparator instances.

Platform and version requirements: JVM (1.0), Native (1.0)

kotlin.concurrent

Utility functions for concurrent programming.

Platform and version requirements: JVM (1.3), JS (1.3), Native (1.3)

kotlin.contracts

Experimental DSL for declaring custom function contracts.

Platform and version requirements: JVM (1.3), JS (1.3), Native (1.3)

kotlin.coroutines

Basic primitives for creating and suspending coroutines: Continuation, CoroutineContext interfaces, coroutine creation and suspension top-level functions.

Platform and version requirements: JVM (1.4), JS (1.4), Native (1.4)

kotlin.coroutines.cancellation

Platform and version requirements: JVM (1.3), JS (1.3), Native (1.3)

kotlin.coroutines.intrinsics

Low-level building blocks for libraries that provide coroutine-based APIs.

Platform and version requirements: JS (1.1)

kotlin.dom

Utility functions for working with the browser DOM.

Platform and version requirements: JVM (1.9), JS (1.9), Native (1.9)

kotlin.enums

Platform and version requirements: JVM (1.1), JS (1.1), Native (1.1)

kotlin.experimental

Experimental APIs, subject to change in future versions of Kotlin.

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)

kotlin.io

IO API for working with files and streams.

Platform and version requirements: JVM (1.8), JS (1.8), Native (1.8)

kotlin.io.encoding

Platform and version requirements: JVM (1.0), JRE7 (1.0)

kotlin.io.path

Convenient extensions for working with file system using java.nio.file.Path.

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)

kotlin.js

Functions and other APIs specific to the JavaScript platform.

Platform and version requirements: JVM (1.0), JS (1.0)

kotlin.jvm

Functions and annotations specific to the Java platform.

Platform and version requirements: JVM (1.8), JRE8 (1.8)

kotlin.jvm.optionals

Convenience extension functions for java.util.Optional to simplify Kotlin-Java interop.

Platform and version requirements: JVM (1.2), JS (1.2), Native (1.2)

kotlin.math

Mathematical functions and constants.

Platform and version requirements: Native (1.3)

kotlin.native

Platform and version requirements: Native (1.0)

kotlin.native.concurrent

Platform and version requirements: Native (1.3)

kotlin.native.ref

Platform and version requirements: Native (1.9)

kotlin.native.runtime

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)

kotlin.properties

Standard implementations of delegates for delegated properties and helper functions for implementing custom delegates.

Platform and version requirements: JVM (1.3), JS (1.3), Native (1.3)

kotlin.random

Provides the default generator of pseudo-random values, the repeatable generator, and a base class for other RNG implementations.

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)

kotlin.ranges

Ranges, Progressions and related top-level and extension functions.

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)

kotlin.reflect

Runtime API for Kotlin reflection

Platform and version requirements: JVM (1.1)

kotlin.reflect.full

Extensions for Kotlin reflection provided by kotlin-reflect library.

Platform and version requirements: JVM (1.0)

kotlin.reflect.jvm

Runtime API for interoperability between Kotlin reflection and Java reflection provided by kotlin-reflect library.

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)

kotlin.sequences

Sequence type that represents lazily evaluated collections. Top-level functions for instantiating sequences and extension functions for sequences.

Platform and version requirements: JVM (1.2), JRE8 (1.2)

kotlin.streams

Utility functions for working with Java 8 streams.

Platform and version requirements: JVM (1.0), Native (1.0)

kotlin.system

System-related utility functions.

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)

kotlin.text

Functions for working with text and regular expressions.

Platform and version requirements: JVM (1.3), JS (1.3), Native (1.3)

kotlin.time

API for representing Duration values and experimental API for measuring time intervals.

Platform and version requirements: JS (1.4)

kotlinx.browser

Platform and version requirements: Native (1.3)

kotlinx.cinterop

Platform and version requirements: Native (1.3)

kotlinx.cinterop.internal

Platform and version requirements: JS (1.4)

kotlinx.dom

Platform and version requirements: Native (1.3)

kotlinx.wasm.jsinterop

Platform and version requirements: JS (1.1)

org.khronos.webgl

Kotlin JavaScript wrappers for the WebGL API.

Platform and version requirements: JS (1.1)

org.w3c.css.masking

Platform and version requirements: JS (1.1)

org.w3c.dom

Kotlin JavaScript wrappers for the DOM API.

Platform and version requirements: JS (1.1)

org.w3c.dom.clipboard

Platform and version requirements: JS (1.1)

org.w3c.dom.css

Kotlin JavaScript wrappers for the DOM CSS API.

Platform and version requirements: JS (1.1)

org.w3c.dom.encryptedmedia

Platform and version requirements: JS (1.1)

org.w3c.dom.events

Kotlin JavaScript wrappers for the DOM events API.

Platform and version requirements: JS (1.1)

org.w3c.dom.mediacapture

Platform and version requirements: JS (1.1)

org.w3c.dom.mediasource

Platform and version requirements: JS (1.1)

org.w3c.dom.parsing

Kotlin JavaScript wrappers for the DOM parsing API.

Platform and version requirements: JS (1.1)

org.w3c.dom.pointerevents

Platform and version requirements: JS (1.1)

org.w3c.dom.svg

Kotlin JavaScript wrappers for the DOM SVG API.

Platform and version requirements: JS (1.1)

org.w3c.dom.url

Kotlin JavaScript wrappers for the DOM URL API.

Platform and version requirements: JS (1.1)

org.w3c.fetch

Kotlin JavaScript wrappers for the W3C fetch API.

Platform and version requirements: JS (1.1)

org.w3c.files

Kotlin JavaScript wrappers for the W3C file API.

Platform and version requirements: JS (1.1)

org.w3c.notifications

Kotlin JavaScript wrappers for the Web Notifications API.

Platform and version requirements: JS (1.1)

org.w3c.performance

Kotlin JavaScript wrappers for the Navigation Timing API.

Platform and version requirements: JS (1.1)

org.w3c.workers

Kotlin JavaScript wrappers for the Web Workers API.

Platform and version requirements: JS (1.1)

org.w3c.xhr

Kotlin JavaScript wrappers for the XMLHttpRequest API.

Index

All Types

© 2010–2023 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/index.html