Package-level declarations
Collection types, such as Iterable, Collection, List, Set, Map and related top-level and extension functions.
Collection types, such as Iterable, Collection, List, Set, Map and related top-level and extension functions.
Collection types, such as Iterable, Collection, List, Set, Map and related top-level and extension functions.
Collection types, such as Iterable, Collection, List, Set, Map and related top-level and extension functions.
Collection types, such as Iterable, Collection, List, Set, Map and related top-level and extension functions.
Collection types, such as Iterable, Collection, List, Set, Map and related top-level and extension functions.
Types
Provides a skeletal implementation of the read-only Collection interface.
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 MutableCollection interface.
Provides a skeletal implementation of the MutableCollection interface.
Provides a skeletal implementation of the MutableCollection interface.
Provides a skeletal implementation of the MutableCollection interface.
Provides a skeletal implementation of the MutableCollection interface.
Provides a skeletal implementation of the MutableCollection interface.
Provides a skeletal implementation of the MutableList interface.
Provides a skeletal implementation of the MutableList interface.
Provides a skeletal implementation of the MutableList interface.
Provides a skeletal implementation of the MutableList interface.
Provides a skeletal implementation of the MutableList interface.
Provides a skeletal implementation of the MutableList interface.
Provides a skeletal implementation of the MutableMap interface.
Provides a skeletal implementation of the MutableMap interface.
Provides a skeletal implementation of the MutableMap interface.
Provides a skeletal implementation of the MutableMap interface.
Provides a skeletal implementation of the MutableMap interface.
Provides a skeletal implementation of the MutableMap interface.
Provides a skeletal implementation of the MutableSet interface.
Provides a skeletal implementation of the MutableSet interface.
Provides a skeletal implementation of the MutableSet interface.
Provides a skeletal implementation of the MutableSet interface.
Provides a skeletal implementation of the MutableSet interface.
Provides a skeletal implementation of the MutableSet interface.
Provides a skeletal implementation of the read-only Set interface.
Resizable-array implementation of the deque data structure.
Provides a MutableList implementation, which uses a resizable array as its backing storage.
Creates a new empty ArrayList with the specified initial capacity.
Creates a new empty ArrayList with the specified initial capacity.
Creates a new empty ArrayList with the specified initial capacity.
An iterator over a sequence of values of type Boolean
.
An iterator over a sequence of values of type Byte
.
An iterator over a sequence of values of type Char
.
A generic collection of elements. Methods in this interface support only read-only access to the collection; read/write access is supported through the MutableCollection interface.
A generic collection of elements. Methods in this interface support only read-only access to the collection; read/write access is supported through the MutableCollection interface.
A generic collection of elements. Methods in this interface support only read-only access to the collection; read/write access is supported through the MutableCollection interface.
A generic collection of elements. Methods in this interface support only read-only access to the collection; read/write access is supported through the MutableCollection interface.
A generic collection of elements. Methods in this interface support only read-only access to the collection; read/write access is supported through the MutableCollection interface.
A generic collection of elements. Methods in this interface support only read-only access to the collection; read/write access is supported through the MutableCollection interface.
An iterator over a sequence of values of type Double
.
An iterator over a sequence of values of type Float
.
Hash table based implementation of the MutableMap interface.
The implementation of the MutableSet interface, backed by a InternalMap implementation.
Data class representing a value from a collection or sequence, along with its index in that collection or sequence.
An iterator over a sequence of values of type Int
.
Classes that inherit from this interface can be represented as a sequence of elements that can be iterated over.
Classes that inherit from this interface can be represented as a sequence of elements that can be iterated over.
Classes that inherit from this interface can be represented as a sequence of elements that can be iterated over.
Classes that inherit from this interface can be represented as a sequence of elements that can be iterated over.
Classes that inherit from this interface can be represented as a sequence of elements that can be iterated over.
An iterator over a collection or another entity that can be represented as a sequence of elements. Allows to sequentially access the elements.
An iterator over a collection or another entity that can be represented as a sequence of elements. Allows to sequentially access the elements.
An iterator over a collection or another entity that can be represented as a sequence of elements. Allows to sequentially access the elements.
An iterator over a collection or another entity that can be represented as a sequence of elements. Allows to sequentially access the elements.
An iterator over a collection or another entity that can be represented as a sequence of elements. Allows to sequentially access the elements.
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. Methods in this interface support only read-only access to the list; read/write access is supported through the MutableList interface.
A generic ordered collection of elements. Methods in this interface support only read-only access to the list; read/write access is supported through the MutableList interface.
A generic ordered collection of elements. Methods in this interface support only read-only access to the list; read/write access is supported through the MutableList interface.
A generic ordered collection of elements. Methods in this interface support only read-only access to the list; read/write access is supported through the MutableList interface.
A generic ordered collection of elements. Methods in this interface support only read-only access to the list; read/write access is supported through the MutableList interface.
A generic ordered collection of elements. Methods in this interface support only read-only access to the list; read/write access is supported through the MutableList interface.
An iterator over a collection that supports indexed access.
An iterator over a collection that supports indexed access.
An iterator over a collection that supports indexed access.
An iterator over a collection that supports indexed access.
An iterator over a collection that supports indexed access.
An iterator over a collection that supports indexed access.
An iterator over a sequence of values of type Long
.
A collection that holds pairs of objects (keys and values) and supports efficiently retrieving the value corresponding to each key. Map keys are unique; the map holds only one value for each key. Methods in this interface support only read-only access to the map; read-write access is supported through the MutableMap interface.
A collection that holds pairs of objects (keys and values) and supports efficiently retrieving the value corresponding to each key. Map keys are unique; the map holds only one value for each key. Methods in this interface support only read-only access to the map; read-write access is supported through the MutableMap interface.
A collection that holds pairs of objects (keys and values) and supports efficiently retrieving the value corresponding to each key. Map keys are unique; the map holds only one value for each key. Methods in this interface support only read-only access to the map; read-write access is supported through the MutableMap interface.
A collection that holds pairs of objects (keys and values) and supports efficiently retrieving the value corresponding to each key. Map keys are unique; the map holds only one value for each key. Methods in this interface support only read-only access to the map; read-write access is supported through the MutableMap interface.
A collection that holds pairs of objects (keys and values) and supports efficiently retrieving the value corresponding to each key. Map keys are unique; the map holds only one value for each key. Methods in this interface support only read-only access to the map; read-write access is supported through the MutableMap interface.
A collection that holds pairs of objects (keys and values) and supports efficiently retrieving the value corresponding to each key. Map keys are unique; the map holds only one value for each key. Methods in this interface support only read-only access to the map; read-write access is supported through the MutableMap interface.
A generic collection of elements that supports adding and removing elements.
A generic collection of elements that supports adding and removing elements.
A generic collection of elements that supports adding and removing elements.
A generic collection of elements that supports adding and removing elements.
A generic collection of elements that supports adding and removing elements.
A generic collection of elements that supports adding and removing elements.
Classes that inherit from this interface can be represented as a sequence of elements that can be iterated over and that supports removing elements during iteration.
Classes that inherit from this interface can be represented as a sequence of elements that can be iterated over and that supports removing elements during iteration.
Classes that inherit from this interface can be represented as a sequence of elements that can be iterated over and that supports removing elements during iteration.
Classes that inherit from this interface can be represented as a sequence of elements that can be iterated over and that supports removing elements during iteration.
Classes that inherit from this interface can be represented as a sequence of elements that can be iterated over and that supports removing elements during iteration.
Classes that inherit from this interface can be represented as a sequence of elements that can be iterated over and that supports removing elements during iteration.
An iterator over a mutable collection. Provides the ability to remove elements while iterating.
An iterator over a mutable collection. Provides the ability to remove elements while iterating.
An iterator over a mutable collection. Provides the ability to remove elements while iterating.
An iterator over a mutable collection. Provides the ability to remove elements while iterating.
An iterator over a mutable collection. Provides the ability to remove elements while iterating.
An iterator over a mutable collection. Provides the ability to remove elements while iterating.
A generic ordered collection of elements that supports adding and removing elements.
A generic ordered collection of elements that supports adding and removing elements.
A generic ordered collection of elements that supports adding and removing elements.
A generic ordered collection of elements that supports adding and removing elements.
A generic ordered collection of elements that supports adding and removing elements.
A generic ordered collection of elements that supports adding and removing elements.
An iterator over a mutable collection that supports indexed access. Provides the ability to add, modify and remove elements while iterating.
An iterator over a mutable collection that supports indexed access. Provides the ability to add, modify and remove elements while iterating.
An iterator over a mutable collection that supports indexed access. Provides the ability to add, modify and remove elements while iterating.
An iterator over a mutable collection that supports indexed access. Provides the ability to add, modify and remove elements while iterating.
An iterator over a mutable collection that supports indexed access. Provides the ability to add, modify and remove elements while iterating.
An iterator over a mutable collection that supports indexed access. Provides the ability to add, modify and remove elements while iterating.
A modifiable collection that holds pairs of objects (keys and values) and supports efficiently retrieving the value corresponding to each key. Map keys are unique; the map holds only one value for each key.
A modifiable collection that holds pairs of objects (keys and values) and supports efficiently retrieving the value corresponding to each key. Map keys are unique; the map holds only one value for each key.
A modifiable collection that holds pairs of objects (keys and values) and supports efficiently retrieving the value corresponding to each key. Map keys are unique; the map holds only one value for each key.
A modifiable collection that holds pairs of objects (keys and values) and supports efficiently retrieving the value corresponding to each key. Map keys are unique; the map holds only one value for each key.
A modifiable collection that holds pairs of objects (keys and values) and supports efficiently retrieving the value corresponding to each key. Map keys are unique; the map holds only one value for each key.
A generic unordered collection of elements that does not support duplicate elements, and supports adding and removing elements.
A generic unordered collection of elements that does not support duplicate elements, and supports adding and removing elements.
A generic unordered collection of elements that does not support duplicate elements, and supports adding and removing elements.
A generic unordered collection of elements that does not support duplicate elements, and supports adding and removing elements.
A generic unordered collection of elements that does not support duplicate elements, and supports adding and removing elements.
A generic unordered collection of elements that does not support duplicate elements, and supports adding and removing elements.
Marker interface indicating that the List implementation supports fast indexed access.
Marker interface indicating that the List implementation supports fast indexed access.
Marker interface indicating that the List implementation supports fast indexed access.
Marker interface indicating that the List implementation supports fast indexed access.
Marker interface indicating that the List implementation supports fast indexed access.
Marker interface indicating that the List implementation supports fast indexed access.
A generic unordered collection of elements that does not support duplicate elements. Methods in this interface support only read-only access to the set; read/write access is supported through the MutableSet interface.
A generic unordered collection of elements that does not support duplicate elements. Methods in this interface support only read-only access to the set; read/write access is supported through the MutableSet interface.
A generic unordered collection of elements that does not support duplicate elements. Methods in this interface support only read-only access to the set; read/write access is supported through the MutableSet interface.
A generic unordered collection of elements that does not support duplicate elements. Methods in this interface support only read-only access to the set; read/write access is supported through the MutableSet interface.
A generic unordered collection of elements that does not support duplicate elements. Methods in this interface support only read-only access to the set; read/write access is supported through the MutableSet interface.
A generic unordered collection of elements that does not support duplicate elements. Methods in this interface support only read-only access to the set; read/write access is supported through the MutableSet interface.
An iterator over a sequence of values of type Short
.
Properties
Returns the range of valid indices for the array.
Returns the range of valid indices for the array.
Returns an IntRange of the valid indices for this collection.
Returns the last valid index for the array.
Returns the last valid index for the array.
Returns the index of the last item in the list or -1 if the list is empty.
Functions
Adds all elements of the given elements array to this MutableCollection.
Adds all elements of the given elements collection to this MutableCollection.
Adds all elements of the given elements sequence to this MutableCollection.
Groups elements from the Grouping source by key and applies operation to the elements of each group sequentially, passing the previously accumulated value and the current element as arguments, and stores the results in a new map.
Groups elements from the Grouping source by key and applies operation to the elements of each group sequentially, passing the previously accumulated value and the current element as arguments, and stores the results in the given destination map.
Returns true
if array has at least one element.
Returns true
if array has at least one element.
Returns true
if collection has at least one element.
Returns true
if map has at least one entry.
Returns true
if at least one element matches the given predicate.
Returns true
if at least one element matches the given predicate.
Returns true
if at least one entry matches the given predicate.
Returns an array of type ByteArray, which is a view of this array where each element is a signed reinterpretation of the corresponding element of this array.
Returns an array of type IntArray, which is a view of this array where each element is a signed reinterpretation of the corresponding element of this array.
Returns a List that wraps the original array.
Returns a List that wraps the original array.
Returns a List that wraps the original array.
Returns a List that wraps the original array.
Returns a List that wraps the original array.
Returns a List that wraps the original array.
Returns a List that wraps the original array.
Returns a List that wraps the original array.
Returns a List that wraps the original array.
Returns an array of type LongArray, which is a view of this array where each element is a signed reinterpretation of the corresponding element of this array.
Returns a reversed read-only view of the original List. All changes made in the original list will be reflected in the reversed one.
Returns a reversed mutable view of the original mutable List. All changes made in the original list will be reflected in the reversed one and vice versa.
Creates a Sequence instance that wraps the original array returning its elements when being iterated.
Creates a Sequence instance that wraps the original collection returning its elements when being iterated.
Creates a Sequence instance that wraps the original map returning its entries when being iterated.
Returns an array of type ShortArray, which is a view of this array where each element is a signed reinterpretation of the corresponding element of this array.
Returns a Map containing the elements from the given array indexed by the key returned from keySelector function applied to each element.
Returns a Map containing the elements from the given collection indexed by the key returned from keySelector function applied to each element.
Returns a Map containing the values provided by valueTransform and indexed by keySelector functions applied to elements of the given array.
Returns a Map containing the values provided by valueTransform and indexed by keySelector functions applied to elements of the given collection.
Populates and returns the destination mutable map with key-value pairs, where key is provided by the keySelector function applied to each element of the given array and value is the element itself.
Populates and returns the destination mutable map with key-value pairs, where key is provided by the keySelector function applied to each element of the given collection and value is the element itself.
Populates and returns the destination mutable map with key-value pairs, where key is provided by the keySelector function and and value is provided by the valueTransform function applied to elements of the given array.
Populates and returns the destination mutable map with key-value pairs, where key is provided by the keySelector function and and value is provided by the valueTransform function applied to elements of the given collection.
Populates and returns the destination mutable map with key-value pairs provided by transform function applied to each element of the given array.
Populates and returns the destination mutable map with key-value pairs provided by transform function applied to each element of the given collection.
Returns a Map where keys are elements from the given array and values are produced by the valueSelector function applied to each element.
Returns a Map where keys are elements from the given collection and values are produced by the valueSelector function applied to each element.
Populates and returns the destination mutable map with key-value pairs for each element of the given array, where key is the element itself and value is provided by the valueSelector function applied to that key.
Populates and returns the destination mutable map with key-value pairs for each element of the given collection, where key is the element itself and value is provided by the valueSelector function applied to that key.
Returns an array of type UByteArray, which is a view of this array where each element is an unsigned reinterpretation of the corresponding element of this array.
Returns an array of type UIntArray, which is a view of this array where each element is an unsigned reinterpretation of the corresponding element of this array.
Returns an array of type ULongArray, which is a view of this array where each element is an unsigned reinterpretation of the corresponding element of this array.
Returns an array of type UShortArray, which is a view of this array where each element is an unsigned reinterpretation of the corresponding element of this array.
Returns an average value of elements in the array.
Returns an average value of elements in the collection.
Searches this list or its range for an element for which the given comparison function returns zero using the binary search algorithm.
Searches this list or its range for the provided element using the binary search algorithm. The list is expected to be sorted into ascending order according to the Comparable natural ordering of its elements, otherwise the result is undefined.
Searches this list or its range for the provided element using the binary search algorithm. The list is expected to be sorted into ascending order according to the specified comparator, otherwise the result is undefined.
Searches the array or the range of the array for the provided element using the binary search algorithm. The array is expected to be sorted, otherwise the result is undefined.
Searches the array or the range of the array for the provided element using the binary search algorithm. The array is expected to be sorted, otherwise the result is undefined.
Searches the array or the range of the array for the provided element using the binary search algorithm. The array is expected to be sorted according to the specified comparator, otherwise the result is undefined.
Searches this list or its range for an element having the key returned by the specified selector function equal to the provided key value using the binary search algorithm. The list is expected to be sorted into ascending order according to the Comparable natural ordering of keys of its elements. otherwise the result is undefined.
Builds a new read-only List by populating a MutableList using the given builderAction and returning a read-only list with the same elements.
Builds a new read-only Map by populating a MutableMap using the given builderAction and returning a read-only map with the same key-value pairs.
Builds a new read-only Set by populating a MutableSet using the given builderAction and returning a read-only set with the same elements.
Returns 1st element from the array.
Returns 1st element from the array.
Returns 1st element from the list.
Returns the key component of the map entry.
Returns 2nd element from the array.
Returns 2nd element from the array.
Returns 2nd element from the list.
Returns the value component of the map entry.
Returns 3rd element from the array.
Returns 3rd element from the array.
Returns 3rd element from the list.
Returns 4th element from the array.
Returns 4th element from the array.
Returns 4th element from the list.
Returns 5th element from the array.
Returns 5th element from the array.
Returns 5th element from the list.
Checks if all elements in the specified collection are contained in this collection.
Checks if the two specified arrays are deeply equal to one another.
Checks if the two specified arrays are deeply equal to one another.
Checks if the two specified arrays are deeply equal to one another.
Checks if the two specified arrays are deeply equal to one another.
Checks if the two specified arrays are deeply equal to one another.
Checks if the two specified arrays are deeply equal to one another.
Checks if the two specified arrays are deeply equal to one another.
Checks if the two specified arrays are deeply equal to one another.
Checks if the two specified arrays are deeply equal to one another.
Returns a hash code based on the contents of this array as if it is List. Nested arrays are treated as lists too.
Returns a hash code based on the contents of this array as if it is List. Nested arrays are treated as lists too.
Returns a hash code based on the contents of this array as if it is List. Nested arrays are treated as lists too.
Returns a hash code based on the contents of this array as if it is List. Nested arrays are treated as lists too.
Returns a hash code based on the contents of this array as if it is List. Nested arrays are treated as lists too.
Returns a hash code based on the contents of this array as if it is List. Nested arrays are treated as lists too.
Returns a hash code based on the contents of this array as if it is List. Nested arrays are treated as lists too.
Returns a hash code based on the contents of this array as if it is List. Nested arrays are treated as lists too.
Returns a hash code based on the contents of this array as if it is List. Nested arrays are treated as lists too.
Returns a string representation of the contents of this array as if it is a List. Nested arrays are treated as lists too.
Returns a string representation of the contents of this array as if it is a List. Nested arrays are treated as lists too.
Returns a string representation of the contents of this array as if it is a List. Nested arrays are treated as lists too.
Returns a string representation of the contents of this array as if it is a List. Nested arrays are treated as lists too.
Returns a string representation of the contents of this array as if it is a List. Nested arrays are treated as lists too.
Returns a string representation of the contents of this array as if it is a List. Nested arrays are treated as lists too.
Returns a string representation of the contents of this array as if it is a List. Nested arrays are treated as lists too.
Returns a string representation of the contents of this array as if it is a List. Nested arrays are treated as lists too.
Returns a string representation of the contents of this array as if it is a List. Nested arrays are treated as lists too.
Checks if the two specified arrays are structurally equal to one another.
Checks if the two specified arrays are structurally equal to one another.
Checks if the two specified arrays are structurally equal to one another.
Checks if the two specified arrays are structurally equal to one another.
Checks if the two specified arrays are structurally equal to one another.
Checks if the two specified arrays are structurally equal to one another.
Checks if the two specified arrays are structurally equal to one another.
Returns a hash code based on the contents of this array as if it is List.
Returns a hash code based on the contents of this array as if it is List.
Returns a hash code based on the contents of this array as if it is List.
Returns a hash code based on the contents of this array as if it is List.
Returns a hash code based on the contents of this array as if it is List.
Returns a hash code based on the contents of this array as if it is List.
Returns a hash code based on the contents of this array as if it is List.
Returns a string representation of the contents of the specified array as if it is List.
Returns a string representation of the contents of the specified array as if it is List.
Returns a string representation of the contents of the specified array as if it is List.
Returns a string representation of the contents of the specified array as if it is List.
Returns a string representation of the contents of the specified array as if it is List.
Returns a string representation of the contents of the specified array as if it is List.
Returns a string representation of the contents of the specified array as if it is List.
Copies this array or its subrange into the destination array and returns that array.
Copies this array or its subrange into the destination array and returns that array.
Copies this array or its subrange into the destination array and returns that array.
Copies this array or its subrange into the destination array and returns that array.
Copies this array or its subrange into the destination array and returns that array.
Copies this array or its subrange into the destination array and returns that array.
Returns new array which is a copy of the original array.
Returns new array which is a copy of the original array.
Returns new array which is a copy of the original array, resized to the given newSize. The copy is either truncated or padded at the end with null
values if necessary.
Returns new array which is a copy of the original array, resized to the given newSize. The copy is either truncated or padded at the end with false
values if necessary.
Returns new array which is a copy of the original array, resized to the given newSize. The copy is either truncated or padded at the end with zero values if necessary.
Returns new array which is a copy of the original array, resized to the given newSize. The copy is either truncated or padded at the end with null char (\u0000
) values if necessary.
Returns new array which is a copy of the original array, resized to the given newSize. The copy is either truncated or padded at the end with zero values if necessary.
Returns new array which is a copy of the original array.
Returns new array which is a copy of the original array, resized to the given newSize. The copy is either truncated or padded at the end with null
values if necessary.
Returns new array which is a copy of the original array, resized to the given newSize. The copy is either truncated or padded at the end with false
values if necessary.