kotlin-stdlib
All Types
Provides a skeletal implementation of the read-only Collection interface.
Base class for CoroutineContext.Element implementations.
Base class for CoroutineContext.Key associated with polymorphic CoroutineContext.Element implementation. Polymorphic element implementation implies delegating its get and minusKey to getPolymorphicElement and minusPolymorphicKey respectively.
A base class to simplify implementing iterators so that implementations only have to implement computeNext to implement the iterator, calling done when the iteration is complete.
Provides a skeletal implementation of the read-only List interface.
Provides a skeletal implementation of the read-only Map interface.
Provides a skeletal implementation of the MutableCollection interface.
Provides a skeletal implementation of the MutableList interface.
Provides a skeletal implementation of the MutableMap interface.
Provides a skeletal implementation of the MutableSet interface.
Provides a skeletal implementation of the read-only Set interface.
Base interface implicitly implemented by all annotation interfaces. See Kotlin language documentation for more information on annotations.
The root of the Kotlin class hierarchy. Every Kotlin class has Any as a superclass.
A generic array of objects. When targeting the JVM, instances of this class are represented as T[]
. Array instances can be created using the arrayOf, arrayOfNulls and emptyArray standard library functions.
Provides a MutableList implementation, which uses a resizable array as its backing storage.
An Array
A Boolean value that may be updated atomically.
An Int value that is always updated atomically. For additional details about atomicity guarantees for reads and writes see kotlin.concurrent.Volatile.
An Int value that is always updated atomically. For additional details about atomicity guarantees for reads and writes see kotlin.concurrent.Volatile.
An Int value that may be updated atomically.
An IntArray in which elements are always updated atomically. For additional details about atomicity guarantees for reads and writes see kotlin.concurrent.Volatile.
A Long value that is always updated atomically. For additional details about atomicity guarantees for reads and writes see kotlin.concurrent.Volatile.
A Long value that is always updated atomically. For additional details about atomicity guarantees for reads and writes see kotlin.concurrent.Volatile.
A Long value that may be updated atomically.
An LongArray in which elements are always updated atomically. For additional details about atomicity guarantees for reads and writes see kotlin.concurrent.Volatile.
A kotlinx.cinterop.NativePtr value that is always updated atomically. For additional details about atomicity guarantees for reads and writes see kotlin.concurrent.Volatile.
A kotlinx.cinterop.NativePtr value that is always updated atomically. For additional details about atomicity guarantees for reads and writes see kotlin.concurrent.Volatile.
A kotlinx.cinterop.NativePtr that may be updated atomically.
Provides Base64 encoding and decoding functionality. Base64 encoding, as defined by the RFC 4648
and a few other RFCs, transforms arbitrary binary data into a sequence of printable characters.
Represents a readable sequence of Char values.
Constant definitions for the standard charsets. These charsets are guaranteed to be available on every implementation of the Java platform.
A source of Instant values.
Represents a range of floating point numbers. Extends ClosedRange interface providing custom operation lessThanOrEquals for comparing values of range domain type.
Represents a range of values (for example, numbers or characters) where both the lower and upper bounds are included in the range. See the Kotlin language documentation for more information.
A generic collection of elements. The interface allows iterating over contained elements and checking whether something is contained within the collection. Complex operations are built upon this functionality and provided in form of kotlin.collections extension functions.
A TimeMark that can be compared for difference with other time marks obtained from the same TimeSource.WithComparableMarks time source.
Provides a comparison function for imposing a total ordering between instances of the type T.
Exposes the console API to Kotlin.
Marks coroutine context element that intercepts coroutine continuations. The coroutines framework uses ContinuationInterceptor.Key to retrieve the interceptor and intercepts all coroutine continuations with interceptContinuation invocations.
Provides a scope, where the functions of the contract DSL, such as returns, callsInPlace, etc., can be used to describe the contract of a function.
The CPointed without any specified interpretation.
The variable containing a COpaquePointer.
Context for the copyAction
function passed to Path.copyToRecursively.
The result of the copyAction
function passed to Path.copyToRecursively that specifies further actions when copying an entry.
Exposes the Date API to Kotlin.
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.
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.
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.
Detached object graph encapsulates transferrable detached subgraph which cannot be accessed externally, until it is attached with the attach extension function.
Forces a top-level property to be initialized eagerly, opposed to lazily on the first access to file and/or property. This annotation can be used as temporal migration assistance during the transition from the previous Kotlin/Native initialization scheme "eager by default" to the new one, "lazy by default".
The common base class of all enum classes. See the Kotlin language documentation for more information on enum classes.
A specialized immutable implementation of List interface that contains all enum entries of the specified enum type E. EnumEntries contains all enum entries in the order they are declared in the source code, consistently with the corresponding Enum.ordinal values.
The marked expect
declaration refines expect
declaration from the closest transitive dependsOn source set. The marked declaration is called a refinement. The annotation can be put only on top-level expect
declarations.
Marks an API related to the Kotlin's context parameters experimental feature.
Marks experimental JsFileName annotation.
This annotation marks the experimental Kotlin/JS reflection API that allows to create an instance of provided KClass The API can be removed completely in any further release.
This annotation marks the Kotlin/Native-only 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.
This annotation marks the experimental ObjCName annotation.
This annotation marks the extensions and top-level functions for working with java.nio.file.Path considered experimental.
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.
This annotation marks the experimental preview of the language feature SubclassOptInRequired.
The builder to provide implementation of the FileVisitor that fileVisitor function builds.
This class was useful only with legacy memory manager. Please use AtomicReference instead.
Represents a source of elements with a keyOf function, which can be applied to each element to get its key.
Hash table based implementation of the MutableMap interface.
The implementation of the MutableSet interface, backed by a InternalMap implementation.
Exposes the JavaScript Array to Kotlin.
Implements annotated function in JavaScript and automatically imports is to Wasm. code string must contain JS expression that evaluates to JS function with signature that matches annotated kotlin function
Implements annotated function in JavaScript and automatically imports is to Wasm. code string must contain JS expression that evaluates to JS function with signature that matches annotated kotlin function
Exposes the JavaScript Map to Kotlin.
Exposes the JavaScript JSON object to Kotlin.
Exposes the TypeScript ReadonlyArray to Kotlin.
Exposes the TypeScript ReadonlyMap to Kotlin.
Exposes the TypeScript ReadonlySet to Kotlin.
Exposes the JavaScript Set to Kotlin.
Instructs the Kotlin compiler to generate a multifile class with top-level functions and properties declared in this file as one of its parts. Name of the corresponding multifile class is provided by the JvmName annotation.
Represents an annotated element and allows to obtain its annotations. See the Kotlin language documentation for more information.
Represents an annotated element and allows to obtain its annotations. See the Kotlin language documentation for more information.
Represents a class and provides introspection capabilities. Instances of this class are obtainable by the ::class
syntax. See the Kotlin language documentation for more information.
Represents a declaration of a type parameter of a class or a callable. See the Kotlin language documentation for more information.
Specifies how a Lazy instance synchronizes initialization and publication among multiple threads. On platforms with no notion of synchronization and threads (JS and WASM), all modes are considered equal to the default implementation.
Hash table based implementation of the MutableMap interface, which additionally preserves the insertion order of entries during the iteration.
The implementation of the MutableSet interface, backed by a InternalMap implementation.
A generic ordered collection of elements. The interface allows iterating over contained elements, accessing elements by index, checking if a list contains some elements, and searching indices for particular values. Complex operations are built upon this functionality and provided in form of kotlin.collections extension functions.
A collection that holds pairs of objects (keys and values) and supports retrieving the value corresponding to each key, checking if a collection holds a particular key or a value. Maps also allow iterating over keys, values or key-value pairs (entries). Complex operations are built upon this functionality and provided in form of kotlin.collections extension functions.
Represents the results from a single capturing group within a MatchResult of Regex.
Extends MatchGroupCollection by introducing a way to get matched groups by name, when regex supports it.
A generic collection of elements that supports iterating, adding and removing elements, as well as checking if the collection contains some elements. Complex operations are built upon this functionality and provided in form of kotlin.collections extension functions.
The result of the onError
function passed to Path.copyToRecursively that specifies further actions when an exception occurs.
Represents a range of values (for example, numbers or characters) where the upper bound is not included in the range. See the Kotlin language documentation for more information.
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.
An enumeration to provide walk options for the Path.walk function. The options can be combined to form the desired walk order and behavior.
Exposes the JavaScript Promise object to Kotlin.
Marker interface indicating that the List implementation supports fast indexed access.
Exposes the JavaScript RegExp object to Kotlin.
Represents the return value of RegExp.exec.
A generic unordered collection of unique elements. The interface allows checking if an element is contained by it and iterating over all elements. Complex operations are built upon this functionality and provided in form of kotlin.collections extension functions.
This class provides a way to create a stable handle to any Kotlin object. After converting to CPointer it can be safely passed to native code e.g. to be received in a Kotlin callback.
Represents a time point notched on a particular TimeSource. Remains bound to the time source it was taken from and allows querying for the duration of time elapsed from that point (see the function elapsedNow).
Marks the JVM backing field of the annotated var
property as volatile
, meaning that reads and writes to this field are atomic and writes are always made visible to other threads. If another thread reads the value of this field (e.g. through its accessor), it sees not only that value, but all side effects that led to writing that value.
Marks the backing field of the annotated var
property as volatile
, meaning that reads and writes to this field are atomic and writes are always made visible to other threads. If another thread reads the value of this field (e.g. through its accessor), it sees not only that value, but all side effects that led to writing that value.