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.
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 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 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.
An iterator over a sequence of values of type Boolean
.
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 Byte
.
An iterator over a sequence of values of type Char
.
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.
An iterator over a sequence of values of type Double
.
An iterator over a sequence of values of type Double
.
An iterator over a sequence of values of type Float
.
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 HashMap instance.
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
.
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.
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 LinkedHashMap instance.
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 sequence of values of type Long
.
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 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.
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.
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 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. 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
.
An iterator over a sequence of values of type Short
.
An iterator over a sequence of values of type UByte
.
An iterator over a sequence of values of type UInt
.
An iterator over a sequence of values of type ULong
.
An iterator over a sequence of values of type UShort
.
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 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.
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.
Returns true
if the two specified arrays are deeply equal to one another, i.e. contain the same number of the same elements in the same order.
Returns true
if the two specified arrays are deeply equal to one another, i.e. contain the same number of the same elements in the same order.
Returns true
if the two specified arrays are deeply equal to one another, i.e. contain the same number of the same elements in the same order.
Returns true
if the two specified arrays are deeply equal to one another, i.e. contain the same number of the same elements in the same order.
Returns true
if the two specified arrays are deeply equal to one another, i.e. contain the same number of the same elements in the same order.
Returns true
if the two specified arrays are deeply equal to one another, i.e. contain the same number of the same elements in the same order.
Returns true
if the two specified arrays are deeply equal to one another, i.e. contain the same number of the same elements in the same order.
Returns true
if the two specified arrays are deeply equal to one another, i.e. contain the same number of the same elements in the same order.
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 true
if the two specified arrays are structurally equal to one another, i.e. contain the same number of the same elements in the same order.
Returns true
if the two specified arrays are structurally equal to one another, i.e. contain the same number of the same elements in the same order.
Returns true
if the two specified arrays are structurally equal to one another, i.e. contain the same number of the same elements in the same order.
Returns true
if the two specified arrays are structurally equal to one another, i.e. contain the same number of the same elements in the same order.
Returns true
if the two specified arrays are structurally equal to one another, i.e. contain the same number of the same elements in the same order.
Returns true
if the two specified arrays are structurally equal to one another, i.e. contain the same number of the same elements in the same order.
Returns true
if the two specified arrays are structurally equal to one another, i.e. contain the same number of the same elements in the same order.
Returns true
if the two specified arrays are structurally equal to one another, i.e. contain the same number of the same elements in the same order.
Returns true
if the two specified arrays are structurally equal to one another, i.e. contain the same number of the same elements in the same order.
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.
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.
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.
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.
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 a new array which is a copy of the specified range of the original array.
Returns a new array which is a copy of the specified range of the original array.
Returns a new array which is a copy of the specified range of the original array.
Returns a new array which is a copy of the specified range of the original array.
Returns a new array which is a copy of the specified range of the original array.
Returns the number of elements in this array.
Returns the number of elements in this collection.
Returns the number of entries in this map.
Returns the number of elements matching the given predicate.
Returns the number of elements matching the given predicate.
Returns the number of entries matching the given predicate.
Returns a list containing only distinct elements from the given array.
Returns a list containing only distinct elements from the given collection.
Returns a list containing all elements except last elements that satisfy the given predicate.
Returns a list containing all elements except last elements that satisfy the given predicate.
Returns a list containing all elements except first elements that satisfy the given predicate.
Returns a list containing all elements except first elements that satisfy the given predicate.
Groups elements from the Grouping source by key and counts elements in each group to the given destination map.
Returns an element at the given index or throws an IndexOutOfBoundsException if the index is out of bounds of this array.
Returns an element at the given index or throws an IndexOutOfBoundsException if the index is out of bounds of this array.
Returns an element at the given index or throws an IndexOutOfBoundsException if the index is out of bounds of this collection.
Returns an element at the given index or throws an IndexOutOfBoundsException if the index is out of bounds of this list.
Returns an element at the given index or throws an IndexOutOfBoundsException if the index is out of bounds of this array.
Returns an element at the given index or throws an IndexOutOfBoundsException if the index is out of bounds of this array.
Returns an element at the given index or throws an IndexOutOfBoundsException if the index is out of bounds of this array.
Returns an element at the given index or throws an IndexOutOfBoundsException if the index is out of bounds of this array.
Returns an element at the given index or throws an IndexOutOfBoundsException if the index is out of bounds of this array.
Returns an element at the given index or the result of calling the defaultValue function if the index is out of bounds of this array.
Returns an element at the given index or the result of calling the defaultValue function if the index is out of bounds of this array.
Returns an element at the given index or the result of calling the defaultValue function if the index is out of bounds of this collection.
Returns an element at the given index or the result of calling the defaultValue function if the index is out of bounds of this list.
Fills this array or its subrange with the specified element value.
Fills the list with the provided value.
Fills this array or its subrange with the specified element value.
Fills the list with the provided value.
Fills this array or its subrange with the specified element value.
Returns a list containing only elements matching the given predicate.
Returns a list containing only elements matching the given predicate.
Returns a new map containing all key-value pairs matching the given predicate.
Returns a list containing only elements matching the given predicate.
Returns a list containing only elements matching the given predicate.
Appends all elements matching the given predicate to the given destination.
Appends all elements matching the given predicate to the given destination.
Returns a list containing all elements that are instances of specified type parameter R.
Appends all elements that are instances of specified type parameter R to the given destination.
Appends all elements that are instances of specified class to the given destination.
Returns a list containing all elements not matching the given predicate.
Returns a list containing all elements not matching the given predicate.
Returns a new map containing all key-value pairs not matching the given predicate.
Appends all elements that are not null
to the given destination.
Appends all elements not matching the given predicate to the given destination.
Appends all elements not matching the given predicate to the given destination.
Appends all entries not matching the given predicate into the given destination.
Appends all elements matching the given predicate to the given destination.
Appends all elements matching the given predicate to the given destination.
Appends all entries matching the given predicate into the mutable map given as destination parameter.
Returns the first non-null value produced by transform function being applied to elements of this array in iteration order, or throws NoSuchElementException if no non-null value was produced.
Returns the first non-null value produced by transform function being applied to elements of this collection in iteration order, or throws NoSuchElementException if no non-null value was produced.
Returns the first non-null value produced by transform function being applied to entries of this map in iteration order, or throws NoSuchElementException if no non-null value was produced.
Returns the first non-null value produced by transform function being applied to elements of this array in iteration order, or null
if no non-null value was produced.
Returns the first non-null value produced by transform function being applied to elements of this collection in iteration order, or null
if no non-null value was produced.
Returns the first non-null value produced by transform function being applied to entries of this map in iteration order, or null
if no non-null value was produced.
Returns the first element, or null
if the array is empty.
Returns the first element, or null
if the array is empty.
Returns the first element, or null
if the collection is empty.
Returns the first element, or null
if the list is empty.
Returns the first element matching the given predicate, or null
if element was not found.
Returns the first element matching the given predicate, or null
if element was not found.
Returns a single list of all elements yielded from results of transform function being invoked on each element of original array.
Returns a single list of all elements yielded from results of transform function being invoked on each element of original array.
Returns a single list of all elements yielded from results of transform function being invoked on each element of original array.
Returns a single list of all elements yielded from results of transform function being invoked on each element of original collection.
Returns a single list of all elements yielded from results of transform function being invoked on each element of original collection.
Returns a single list of all elements yielded from results of transform function being invoked on each entry of original map.
Returns a single list of all elements yielded from results of transform function being invoked on each entry of original map.
Returns a single list of all elements yielded from results of transform function being invoked on each element and its index in the original array.
Returns a single list of all elements yielded from results of transform function being invoked on each element and its index in the original collection.
Appends all elements yielded from results of transform function being invoked on each element and its index in the original array, to the given destination.
Appends all elements yielded from results of transform function being invoked on each element and its index in the original collection, to the given destination.
Appends all elements yielded from results of transform function being invoked on each element of original array, to the given destination.
Appends all elements yielded from results of transform function being invoked on each element of original array, to the given destination.
Appends all elements yielded from results of transform function being invoked on each element of original array, to the given destination.
Appends all elements yielded from results of transform function being invoked on each element of original collection, to the given destination.
Appends all elements yielded from results of transform function being invoked on each element of original collection, to the given destination.
Appends all elements yielded from results of transform function being invoked on each entry of original map, to the given destination.
Appends all elements yielded from results of transform function being invoked on each entry of original map, to the given destination.
Accumulates value starting with initial value and applying operation from left to right to current accumulator value and each element.
Accumulates value starting with initial value and applying operation from left to right to current accumulator value and each element.
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. An initial value of accumulator is the same initialValue for each group.
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. An initial value of accumulator is provided by initialValueSelector function.
Accumulates value starting with initial value and applying operation from left to right to current accumulator value and each element with its index in the original array.
Accumulates value starting with initial value and applying operation from left to right to current accumulator value and each element with its index in the original array.
Accumulates value starting with initial value and applying operation from left to right to current accumulator value and each element with its index in the original collection.
Accumulates value starting with initial value and applying operation from right to left to each element and current accumulator value.
Accumulates value starting with initial value and applying operation from right to left to each element and current accumulator value.
Accumulates value starting with initial value and applying operation from right to left to each element with its index in the original array and current accumulator value.
Accumulates value starting with initial value and applying operation from right to left to each element with its index in the original array and current accumulator value.
Accumulates value starting with initial value and applying operation from right to left to each element with its index in the original list and current accumulator value.
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. An initial value of accumulator is the same initialValue for each group.
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. An initial value of accumulator is provided by initialValueSelector function.
Performs the given action on each element, providing sequential index with the element.
Performs the given action on each element, providing sequential index with the element.
Returns the value to which the specified key is mapped, or defaultValue if this map contains no mapping for the key.
Returns an element at the given index or the result of calling the defaultValue function if the index is out of bounds of this array.
Returns an element at the given index or the result of calling the defaultValue function if the index is out of bounds of this array.
Returns an element at the given index or the result of calling the defaultValue function if the index is out of bounds of this list.
Returns the value for the given key, or the result of the defaultValue function if there was no entry for the given key.
Returns the value for the given key. If the key is not found in the map, calls the defaultValue function, puts its result into the map under the given key and returns it.
Returns the value for the given key or throws an exception if there is no such key in the map.
Returns the value of the property for the given object from this read-only map.
Returns the value of the property for the given object from this mutable map.
Groups elements of the original array by the key returned by the given keySelector function applied to each element and returns a map where each group key is associated with a list of corresponding elements.
Groups elements of the original array by the key returned by the given keySelector function applied to each element and returns a map where each group key is associated with a list of corresponding elements.
Groups elements of the original collection by the key returned by the given keySelector function applied to each element and returns a map where each group key is associated with a list of corresponding elements.
Groups values returned by the valueTransform function applied to each element of the original array by the key returned by the given keySelector function applied to the element and returns a map where each group key is associated with a list of corresponding values.
Groups values returned by the valueTransform function applied to each element of the original array by the key returned by the given keySelector function applied to the element and returns a map where each group key is associated with a list of corresponding values.
Groups values returned by the valueTransform function applied to each element of the original collection by the key returned by the given keySelector function applied to the element and returns a map where each group key is associated with a list of corresponding values.
Groups elements of the original array by the key returned by the given keySelector function applied to each element and puts to the destination map each group key associated with a list of corresponding elements.
Groups elements of the original array by the key returned by the given keySelector function applied to each element and puts to the destination map each group key associated with a list of corresponding elements.
Groups elements of the original collection by the key returned by the given keySelector function applied to each element and puts to the destination map each group key associated with a list of corresponding elements.
Groups values returned by the valueTransform function applied to each element of the original array by the key returned by the given keySelector function applied to the element and puts to the destination map each group key associated with a list of corresponding values.
Groups values returned by the valueTransform function applied to each element of the original array by the key returned by the given keySelector function applied to the element and puts to the destination map each group key associated with a list of corresponding values.
Groups values returned by the valueTransform function applied to each element of the original collection by the key returned by the given keySelector function applied to the element and puts to the destination map each group key associated with a list of corresponding values.
Creates a Grouping source from an array to be used later with one of group-and-fold operations using the specified keySelector function to extract a key from each element.
Creates a Grouping source from a collection to be used later with one of group-and-fold operations using the specified keySelector function to extract a key from each element.
Returns this array if it's not empty or the result of calling defaultValue function if the array is empty.
Returns this collection if it's not empty or the result of calling defaultValue function if the collection is empty.
Returns this map if it's not empty or the result of calling defaultValue function if the map is empty.
Returns first index of element, or -1 if the array does not contain element.
Returns first index of element, or -1 if the array does not contain element.
Returns first index of element, or -1 if the collection does not contain element.
Returns first index of element, or -1 if the list does not contain element.
Returns index of the first element matching the given predicate, or -1 if the array does not contain such element.
Returns index of the first element matching the given predicate, or -1 if the array does not contain such element.
Returns index of the first element matching the given predicate, or -1 if the collection does not contain such element.
Returns index of the first element matching the given predicate, or -1 if the list does not contain such element.
Returns index of the last element matching the given predicate, or -1 if the array does not contain such element.
Returns index of the last element matching the given predicate, or -1 if the array does not contain such element.
Returns index of the last element matching the given predicate, or -1 if the collection does not contain such element.
Returns index of the last element matching the given predicate, or -1 if the list does not contain such element.
Returns a set containing all elements that are contained by both this array and the specified collection.
Returns a set containing all elements that are contained by both this collection and the specified collection.
Returns true
if the array is empty.
Returns true
if the array is not empty.
Returns true
if the collection is not empty.
Returns true
if this map is not empty.
Returns true
if this nullable array is either null or empty.
Returns true
if this nullable collection is either null or empty.
Returns true
if this nullable map is either null or empty.
Returns the given iterator itself. This allows to use an instance of iterator in a for
loop.
Returns a MutableIterator over the mutable entries in the MutableMap.
Creates an Iterator for an java.util.Enumeration, allowing to use it in for
loops.
Appends the string from all the elements separated using separator and using the given prefix and postfix if supplied.
Creates a string from all the elements separated using separator and using the given prefix and postfix if supplied.
Returns last index of element, or -1 if the array does not contain element.
Returns last index of element, or -1 if the array does not contain element.
Returns last index of element, or -1 if the collection does not contain element.
Returns last index of element, or -1 if the list does not contain element.
Returns the last element, or null
if the array is empty.
Returns the last element, or null
if the array is empty.
Returns the last element, or null
if the collection is empty.
Returns the last element, or null
if the list is empty.
Returns the last element matching the given predicate, or null
if no such element was found.
Returns the last element matching the given predicate, or null
if no such element was found.
Returns an empty new LinkedHashMap.
Returns a new LinkedHashMap with the specified contents, given as a list of pairs where the first component is the key and the second is the value.
Returns an empty new LinkedHashSet.
Returns a new LinkedHashSet with the given elements. Elements of the set are iterated in the order they were specified.
Constructs the specialized implementation of LinkedHashMap with String keys, which stores the keys as properties of JS object without hashing them.
Creates a new instance of the specialized implementation of LinkedHashSet with the specified String elements, which elements the keys as properties of JS object without hashing them.
Returns an empty read-only list. The returned list is serializable (JVM).
Returns a new read-only list of given elements. The returned list is serializable (JVM).
Returns an immutable list containing only the specified object element.
Returns a new read-only list either of single given element, if it is not null, or empty list if the element is null. The returned list is serializable (JVM).
Returns a new read-only list only of those given elements, that are not null. The returned list is serializable (JVM).
Returns a list containing the results of applying the given transform function to each element in the original array.
Returns a list containing the results of applying the given transform function to each element in the original array.
Returns a list containing the results of applying the given transform function to each element in the original collection.
Returns a list containing the results of applying the given transform function to each entry in the original map.
Returns a list containing the results of applying the given transform function to each element and its index in the original array.
Returns a list containing the results of applying the given transform function to each element and its index in the original array.
Returns a list containing the results of applying the given transform function to each element and its index in the original collection.
Returns a list containing only the non-null results of applying the given transform function to each element and its index in the original array.
Returns a list containing only the non-null results of applying the given transform function to each element and its index in the original collection.
Applies the given transform function to each element and its index in the original array and appends only the non-null results to the given destination.
Applies the given transform function to each element and its index in the original collection and appends only the non-null results to the given destination.
Applies the given transform function to each element and its index in the original array and appends the results to the given destination.
Applies the given transform function to each element and its index in the original array and appends the results to the given destination.
Applies the given transform function to each element and its index in the original collection and appends the results to the given destination.
Populates the given destination map with entries having the keys obtained by applying the transform function to each entry in this Map and the values of this map.
Returns a list containing only the non-null results of applying the given transform function to each element in the original array.
Returns a list containing only the non-null results of applying the given transform function to each element in the original collection.
Returns a list containing only the non-null results of applying the given transform function to each entry in the original map.
Applies the given transform function to each element in the original array and appends only the non-null results to the given destination.
Applies the given transform function to each element in the original collection and appends only the non-null results to the given destination.
Applies the given transform function to each entry in the original map and appends only the non-null results to the given destination.
Returns an empty read-only map.
Returns a new read-only map with the specified contents, given as a list of pairs where the first value is the key and the second is the value.
Returns an immutable map, mapping only the specified key to the specified value.
Applies the given transform function to each element of the original array and appends the results to the given destination.
Applies the given transform function to each element of the original array and appends the results to the given destination.
Applies the given transform function to each element of the original collection and appends the results to the given destination.
Applies the given transform function to each entry of the original map and appends the results to the given destination.
Populates the given destination map with entries having the keys of this map and the values obtained by applying the transform function to each entry in this Map.
Returns the first element yielding the largest value of the given function or null
if there are no elements.
Returns the first entry yielding the largest value of the given function or null
if there are no entries.
Returns the largest value among all values produced by selector function applied to each element in the array.
Returns the largest value among all values produced by selector function applied to each element in the collection.
Returns the largest value among all values produced by selector function applied to each entry in the map.
Returns the largest value among all values produced by selector function applied to each element in the array or null
if there are no elements.
Returns the largest value among all values produced by selector function applied to each element in the collection or null
if there are no elements.
Returns the largest value among all values produced by selector function applied to each entry in the map or null
if there are no entries.
Returns the largest value according to the provided comparator among all values produced by selector function applied to each element in the array.
Returns the largest value according to the provided comparator among all values produced by selector function applied to each element in the collection.
Returns the largest value according to the provided comparator among all values produced by selector function applied to each entry in the map.
Returns the largest value according to the provided comparator among all values produced by selector function applied to each element in the array or null
if there are no elements.
Returns the largest value according to the provided comparator among all values produced by selector function applied to each element in the collection or null
if there are no elements.
Returns the largest value according to the provided comparator among all values produced by selector function applied to each entry in the map or null
if there are no entries.
Returns the largest element or null
if there are no elements.
Returns the first element having the largest value according to the provided comparator or null
if there are no elements.
Returns the first entry having the largest value according to the provided comparator or null
if there are no entries.
Returns the first element yielding the smallest value of the given function or null
if there are no elements.
Returns the first entry yielding the smallest value of the given function or null
if there are no entries.
Returns the smallest value among all values produced by selector function applied to each element in the array.
Returns the smallest value among all values produced by selector function applied to each element in the collection.
Returns the smallest value among all values produced by selector function applied to each entry in the map.
Returns the smallest value among all values produced by selector function applied to each element in the array or null
if there are no elements.
Returns the smallest value among all values produced by selector function applied to each element in the collection or null
if there are no elements.
Returns the smallest value among all values produced by selector function applied to each entry in the map or null
if there are no entries.
Returns the smallest value according to the provided comparator among all values produced by selector function applied to each element in the array.
Returns the smallest value according to the provided comparator among all values produced by selector function applied to each element in the collection.
Returns the smallest value according to the provided comparator among all values produced by selector function applied to each entry in the map.
Returns the smallest value according to the provided comparator among all values produced by selector function applied to each element in the array or null
if there are no elements.
Returns the smallest value according to the provided comparator among all values produced by selector function applied to each element in the collection or null
if there are no elements.
Returns the smallest value according to the provided comparator among all values produced by selector function applied to each entry in the map or null
if there are no entries.
Returns the smallest element or null
if there are no elements.
Returns a list containing all elements of the original collection without the first occurrence of the given element.
Returns a list containing all elements of the original collection except the elements contained in the given elements array.
Returns a list containing all elements of the original collection except the elements contained in the given elements collection.
Returns a list containing all elements of the original collection except the elements contained in the given elements sequence.
Returns a map containing all entries of the original map except the entry with the given key.
Returns a map containing all entries of the original map except those entries the keys of which are contained in the given keys array.
Returns a map containing all entries of the original map except those entries the keys of which are contained in the given keys collection.
Returns a map containing all entries of the original map except those entries the keys of which are contained in the given keys sequence.
Returns a set containing all elements of the original set except the given element.
Returns a set containing all elements of the original set except the elements contained in the given elements array.
Returns a set containing all elements of the original set except the elements contained in the given elements collection.
Returns a set containing all elements of the original set except the elements contained in the given elements sequence.
Removes a single instance of the specified element from this mutable collection.
Removes all elements contained in the given elements array from this mutable collection.
Removes all elements contained in the given elements collection from this mutable collection.
Removes all elements contained in the given elements sequence from this mutable collection.
Removes the entry with the given key from this mutable map.
Removes all entries the keys of which are contained in the given keys array from this mutable map.
Removes all entries the keys of which are contained in the given keys collection from this mutable map.
Removes all entries from the keys of which are contained in the given keys sequence from this mutable map.
Returns the first element having the smallest value according to the provided comparator or null
if there are no elements.
Returns the first entry having the smallest value according to the provided comparator or null
if there are no entries.
Returns an empty new MutableList.
Returns a new MutableList with the given elements.
Returns an empty new MutableMap.
Returns a new MutableMap with the specified contents, given as a list of pairs where the first component is the key and the second is the value.
Returns an empty new MutableSet.
Returns a new MutableSet with the given elements. Elements of the set are iterated in the order they were specified.
Returns true
if the array has no elements.
Returns true
if the array has no elements.
Returns true
if the collection has no elements.
Returns true
if the map has no entries.
Returns true
if no elements match the given predicate.
Returns true
if no elements match the given predicate.
Returns true
if no entries match the given predicate.
Performs the given action on each element, providing sequential index with the element, and returns the collection itself afterwards.
Performs the given action on each entry, providing sequential index with the entry, and returns the map itself afterwards.
Performs the given action on each element, providing sequential index with the element, and returns the array itself afterwards.
Returns the array if it's not null
, or an empty array otherwise.
Returns this Collection if it's not null
and the empty list otherwise.
Returns this List if it's not null
and the empty list otherwise.
Returns this Set if it's not null
and the empty set otherwise.
Returns the array if it's not null
, or an empty array otherwise.
Returns the array if it's not null
, or an empty array otherwise.
Splits the original array into pair of lists, where first list contains elements for which predicate yielded true
, while second list contains elements for which predicate yielded false
.
Splits the original collection into pair of lists, where first list contains elements for which predicate yielded true
, while second list contains elements for which predicate yielded false
.
Returns an array containing all elements of the original array and then the given element.
Returns an array containing all elements of the original array and then all elements of the given elements array.
Returns an array containing all elements of the original array and then all elements of the given elements collection.
Returns an array containing all elements of the original array and then the given element.
Returns an array containing all elements of the original array and then all elements of the given elements array.
Returns an array containing all elements of the original array and then all elements of the given elements collection.
Returns a list containing all elements of the original collection and then the given element.
Returns a list containing all elements of the original collection and then all elements of the given elements array.
Returns a list containing all elements of the original collection and then all elements of the given elements collection.
Returns a list containing all elements of the original collection and then all elements of the given elements sequence.
Creates a new read-only map by replacing or adding entries to this map from a given array of key-value pairs.
Creates a new read-only map by replacing or adding an entry to this map from a given key-value pair.
Creates a new read-only map by replacing or adding entries to this map from a given collection of key-value pairs.
Creates a new read-only map by replacing or adding entries to this map from another map.
Creates a new read-only map by replacing or adding entries to this map from a given sequence of key-value pairs.
Returns a set containing all elements of the original set and then the given element if it isn't already in this set.
Returns a set containing all elements of the original set and the given elements array, which aren't already in this set.
Returns a set containing all elements of the original set and the given elements collection, which aren't already in this set. The returned set preserves the element iteration order of the original set.
Returns a set containing all elements of the original set and the given elements sequence, which aren't already in this set.
Returns an array containing all elements of the original array and then the given element.
Returns an array containing all elements of the original array and then all elements of the given elements array.
Returns an array containing all elements of the original array and then all elements of the given elements collection.
Returns an array containing all elements of the original array and then the given element.
Returns an array containing all elements of the original array and then all elements of the given elements array.
Returns an array containing all elements of the original array and then all elements of the given elements collection.
Returns an array containing all elements of the original array and then the given element.
Returns an array containing all elements of the original array and then all elements of the given elements array.
Returns an array containing all elements of the original array and then all elements of the given elements collection.
Adds the specified element to this mutable collection.
Adds all elements of the given elements array to this mutable collection.
Adds all elements of the given elements collection to this mutable collection.
Adds all elements of the given elements sequence to this mutable collection.
Appends or replaces all pairs from the given array of pairs in this mutable map.
Appends or replaces the given pair in this mutable map.
Appends or replaces all pairs from the given collection of pairs in this mutable map.
Appends or replaces all entries from the given map in this mutable map.
Appends or replaces all pairs from the given sequence of pairs in this mutable map.
Returns an array containing all elements of the original array and then the given element.
Returns a list containing all elements of the original collection and then the given element.
Returns a set containing all elements of the original set and then the given element if it isn't already in this set.
Returns an array containing all elements of the original array and then the given element.
Returns an array containing all elements of the original array and then the given element.
Puts all the given pairs into this MutableMap with the first component in the pair being the key and the second the value.
Puts all the elements of the given collection into this MutableMap with the first component in the pair being the key and the second the value.
Puts all the elements of the given sequence into this MutableMap with the first component in the pair being the key and the second the value.
Returns a random element from this array.
Returns a random element from this collection.
Returns a random element from this array using the specified source of randomness.
Returns a random element from this collection using the specified source of randomness.
Returns a random element from this array, or null
if this array is empty.
Returns a random element from this collection, or null
if this collection is empty.
Returns a random element from this array using the specified source of randomness, or null
if this array is empty.
Returns a random element from this collection using the specified source of randomness, or null
if this collection is empty.
Accumulates value starting with the first element and applying operation from left to right to current accumulator value and each element.
Accumulates value starting with the first element and applying operation from left to right to current accumulator value and each element.
Groups elements from the Grouping source by key and applies the reducing operation to the elements of each group sequentially starting from the second element of the group, passing the previously accumulated value and the current element as arguments, and stores the results in a new map. An initial value of accumulator is the first element of the group.
Accumulates value starting with the first element and applying operation from left to right to current accumulator value and each element with its index in the original array.
Accumulates value starting with the first element and applying operation from left to right to current accumulator value and each element with its index in the original array.
Accumulates value starting with the first element and applying operation from left to right to current accumulator value and each element with its index in the original collection.
Accumulates value starting with the first element and applying operation from left to right to current accumulator value and each element with its index in the original array.
Accumulates value starting with the first element and applying operation from left to right to current accumulator value and each element with its index in the original collection.
Accumulates value starting with the first element and applying operation from left to right to current accumulator value and each element.
Accumulates value starting with the last element and applying operation from right to left to each element and current accumulator value.
Accumulates value starting with the last element and applying operation from right to left to each element and current accumulator value.
Accumulates value starting with the last element and applying operation from right to left to each element with its index in the original array and current accumulator value.
Accumulates value starting with the last element and applying operation from right to left to each element with its index in the original array and current accumulator value.
Accumulates value starting with the last element and applying operation from right to left to each element with its index in the original list and current accumulator value.
Accumulates value starting with the last element and applying operation from right to left to each element with its index in the original array and current accumulator value.
Accumulates value starting with the last element and applying operation from right to left to each element with its index in the original list and current accumulator value.
Accumulates value starting with the last element and applying operation from right to left to each element and current accumulator value.
Groups elements from the Grouping source by key and applies the reducing operation to the elements of each group sequentially starting from the second element of the group, passing the previously accumulated value and the current element as arguments, and stores the results in the given destination map. An initial value of accumulator is the first element of the group.
Removes a single instance of the specified element from this collection, if it is present.
Removes the element at the specified index from this list. In Kotlin one should use the MutableList.removeAt function instead.
Removes the specified key and its corresponding value from this map.
Removes all elements from this MutableCollection that are also contained in the given elements array.
Removes all of this collection's elements that are also contained in the specified collection.
Removes all elements from this MutableCollection that are also contained in the given elements collection.
Removes all elements from this MutableCollection that are also contained in the given elements sequence.
Removes all elements from this MutableIterable that match the given predicate.
Removes all elements from this MutableList that match the given predicate.
Removes the first element from this mutable list and returns that removed element, or throws NoSuchElementException if this list is empty.
Removes the first element from this mutable list and returns that removed element, or returns null
if this list is empty.
Removes the last element from this mutable list and returns that removed element, or throws NoSuchElementException if this list is empty.
Removes the last element from this mutable list and returns that removed element, or returns null
if this list is empty.
Replaces each element in the list with a result of a transformation specified.
Returns an original collection containing all the non-null
elements, throwing an IllegalArgumentException if there are any null
elements.
Retains only elements of this MutableCollection that are contained in the given elements array.
Retains only the elements in this collection that are contained in the specified collection.
Retains only elements of this MutableCollection that are contained in the given elements collection.
Retains only elements of this MutableCollection that are contained in the given elements sequence.
Retains only elements of this MutableIterable that match the given predicate.
Retains only elements of this MutableList that match the given predicate.
Reverses elements in the array in-place.
Reverses elements in the array in-place.
Reverses elements in the list in-place.
Reverses elements of the array in the specified range in-place.
Returns a list with elements in reversed order.
Returns a list with elements in reversed order.
Returns an array with elements of this array in reversed order.
Returns an array with elements of this array in reversed order.
Returns a list containing successive accumulation values generated by applying operation from left to right to each element and current accumulator value that starts with initial value.
Returns a list containing successive accumulation values generated by applying operation from left to right to each element, its index in the original array and current accumulator value that starts with initial value.
Returns a list containing successive accumulation values generated by applying operation from left to right to each element, its index in the original collection and current accumulator value that starts with initial value.
Returns a list containing successive accumulation values generated by applying operation from left to right to each element and current accumulator value that starts with the first element of this array.
Returns a list containing successive accumulation values generated by applying operation from left to right to each element and current accumulator value that starts with the first element of this collection.
Returns a list containing successive accumulation values generated by applying operation from left to right to each element, its index in the original array and current accumulator value that starts with the first element of this array.
Returns a list containing successive accumulation values generated by applying operation from left to right to each element, its index in the original collection and current accumulator value that starts with the first element of this collection.
Returns a list containing successive accumulation values generated by applying operation from left to right to each element and current accumulator value that starts with initial value.
Returns a list containing successive accumulation values generated by applying operation from left to right to each element, its index in the original array and current accumulator value that starts with initial value.
Returns a list containing successive accumulation values generated by applying operation from left to right to each element, its index in the original collection and current accumulator value that starts with initial value.
Returns an empty read-only set. The returned set is serializable (JVM).
Returns a new read-only set with the given elements. Elements of the set are iterated in the order they were specified. The returned set is serializable (JVM).
Returns an immutable set containing only the specified object element.
Returns an immutable set containing only the specified object element. The returned set is serializable.
Returns a new read-only set either with single given element, if it is not null, or empty set if the element is null. The returned set is serializable (JVM).
Returns a new read-only set only with those given elements, that are not null. Elements of the set are iterated in the order they were specified. The returned set is serializable (JVM).
Randomly shuffles elements in this array in-place.
Randomly shuffles elements in this array in-place using the specified random instance as the source of randomness.
Randomly shuffles elements in this list in-place using the specified random instance as the source of randomness.
Randomly shuffles elements in this mutable list.
Randomly shuffles elements in this mutable list using the specified random instance as the source of randomness.
Returns a new list with the elements of this list randomly shuffled using the specified random instance as the source of randomness.
Returns a new list with the elements of this list randomly shuffled.
Returns a new list with the elements of this list randomly shuffled.
Returns a new list with the elements of this list randomly shuffled using the specified random instance as the source of randomness.
Returns the single element, or throws an exception if the array is empty or has more than one element.
Returns the single element, or throws an exception if the array is empty or has more than one element.
Returns the single element, or throws an exception if the collection is empty or has more than one element.
Returns the single element, or throws an exception if the list is empty or has more than one element.
Returns the single element matching the given predicate, or throws exception if there is no or more than one matching element.
Returns the single element matching the given predicate, or throws exception if there is no or more than one matching element.
Returns single element, or null
if the array is empty or has more than one element.
Returns single element, or null
if the array is empty or has more than one element.
Returns single element, or null
if the collection is empty or has more than one element.
Returns single element, or null
if the list is empty or has more than one element.
Returns the single element matching the given predicate, or null
if element was not found or more than one element was found.
Returns the single element matching the given predicate, or null
if element was not found or more than one element was found.
Returns a list containing elements at specified indices.
Returns a list containing elements at indices in the specified indices range.
Returns a list containing elements at specified indices.
Returns a list containing elements at indices in the specified indices range.
Returns an array containing elements of this array at specified indices.
Returns an array containing elements at indices in the specified indices range.
Returns an array containing elements of this array at specified indices.
Returns an array containing elements at indices in the specified indices range.
Sorts the array in-place according to the natural order of its elements.
Sorts the array in-place.
Sorts the array in-place.
Sorts a range in the array in-place.
Sorts the array in-place according to the natural order of its elements.
Sorts the array in-place.
Sorts elements in the list in-place according to their natural sort order.
Sorts the array in-place according to the order specified by the given comparison function.
Sorts a range in the array in-place.
Sorts the array in-place according to the natural order of its elements.
Sorts the array in-place.
Sorts elements in the list in-place according to their natural sort order.
Sorts a range in the array in-place.
Sorts a range in the array in-place.
Sorts the array in-place according to the natural order of its elements.
Sorts the array in-place.
Sorts elements in the list in-place according to their natural sort order.
Sorts a range in the array in-place.
Sorts elements in the array in-place descending according to their natural sort order.
Sorts elements in the array in-place descending according to their natural sort order.
Sorts elements in the list in-place descending according to their natural sort order.
Sorts elements of the array in the specified range in-place. The elements are sorted descending according to their natural sort order.
Returns a list of all elements sorted according to their natural sort order.
Returns a list of all elements sorted according to their natural sort order.
Returns an array with all elements of this array sorted according to their natural sort order.
Returns an array with all elements of this array sorted according to their natural sort order.
Returns an array with all elements of this array sorted descending according to their natural sort order.
Returns an array with all elements of this array sorted descending according to their natural sort order.
Returns an array with all elements of this array sorted according the specified comparator.
Returns a list of all elements sorted according to natural sort order of the value returned by specified selector function.
Returns a list of all elements sorted descending according to natural sort order of the value returned by specified selector function.
Returns a list of all elements sorted descending according to their natural sort order.
Returns a list of all elements sorted descending according to their natural sort order.
Returns a new SortedMap with the specified contents, given as a list of pairs where the first value is the key and the second is the value.
Returns a new SortedMap with the specified contents, given as a list of pairs where the first value is the key and the second is the value.
Returns a new java.util.SortedSet with the given elements.
Returns a new java.util.SortedSet with the given comparator and elements.
Returns a list of all elements sorted according to the specified comparator.
Sorts the array in-place according to the order specified by the given comparator.
Sorts a range in the array in-place with the given comparator.
Sorts the array in-place according to the order specified by the given comparator.
Sorts elements in the list in-place according to the order specified with comparator.
Sorts a range in the array in-place with the given comparator.
Sorts the array in-place according to the order specified by the given comparator.
Sorts elements in the list in-place according to the order specified with comparator.
Sorts a range in the array in-place with the given comparator.
Sorts the array in-place according to the order specified by the given comparator.
Sorts elements in the list in-place according to the order specified with comparator.
Sorts a range in the array in-place with the given comparator.
Returns a set containing all elements that are contained by this array and not contained by the specified collection.
Returns a set containing all elements that are contained by this collection and not contained by the specified collection.
Returns the sum of all elements in the array.
Returns the sum of all elements in the array.
Returns the sum of all elements in the array.
Returns the sum of all elements in the collection.
Returns the sum of all elements in the collection.
Returns the sum of all values produced by selector function applied to each element in the array.
Returns the sum of all values produced by selector function applied to each element in the array.
Returns the sum of all values produced by selector function applied to each element in the collection.
Returns the sum of all values produced by selector function applied to each element in the array.
Returns the sum of all values produced by selector function applied to each element in the array.
Returns the sum of all values produced by selector function applied to each element in the collection.
Returns the sum of all values produced by selector function applied to each element in the array.
Returns the sum of all values produced by selector function applied to each element in the array.
Returns the sum of all values produced by selector function applied to each element in the collection.
Returns the sum of all values produced by selector function applied to each element in the collection.
Returns the sum of all values produced by selector function applied to each element in the array.
Returns the sum of all values produced by selector function applied to each element in the collection.
Returns a list containing last elements satisfying the given predicate.
Returns a list containing last elements satisfying the given predicate.
Returns a list containing first elements satisfying the given predicate.
Returns a list containing first elements satisfying the given predicate.
Returns an array of Boolean containing all of the elements of this generic array.
Returns an array of Boolean containing all of the elements of this collection.
Returns an array of Byte containing all of the elements of this generic array.
Returns an array of type ByteArray, which is a copy of this array where each element is a signed reinterpretation of the corresponding element of this array.
Returns an array of Byte containing all of the elements of this collection.
Returns an array of Char containing all of the elements of this generic array.
Returns an array of Char containing all of the elements of this collection.
Appends all elements to the given destination collection.
Returns an array of Double containing all of the elements of this generic array.
Returns an array of Double containing all of the elements of this collection.
Returns an array of Float containing all of the elements of this generic array.
Returns an array of Float containing all of the elements of this collection.
Returns a new HashSet of all elements.
Returns an array of Int containing all of the elements of this generic array.
Returns an array of type IntArray, which is a copy of this array where each element is a signed reinterpretation of the corresponding element of this array.
Returns an array of Int containing all of the elements of this collection.
Returns an array of Long containing all of the elements of this generic array.
Returns an array of type LongArray, which is a copy of this array where each element is a signed reinterpretation of the corresponding element of this array.
Returns an array of Long containing all of the elements of this collection.
Returns a new map containing all key-value pairs from the given array of pairs.
Returns a new map containing all key-value pairs from the given collection of pairs.
Returns a new read-only map containing all key-value pairs from the original map.
Returns a new map containing all key-value pairs from the given sequence of pairs.
Populates and returns the destination mutable map with key-value pairs from the given array of pairs.
Populates and returns the destination mutable map with key-value pairs from the given collection of pairs.
Populates and returns the destination mutable map with key-value pairs from the given map.
Populates and returns the destination mutable map with key-value pairs from the given sequence of pairs.
Returns a new MutableList filled with all elements of this array.
Returns a new MutableList filled with all elements of this collection.
Returns a new mutable map containing all key-value pairs from the original map.
Returns a new MutableSet containing all distinct elements from the given array.
Returns a new MutableSet containing all distinct elements from the given collection.
Converts this Map to a Properties object.
Returns a Set of all elements.
Returns an array of Short containing all of the elements of this generic array.
Returns an array of type ShortArray, which is a copy of this array where each element is a signed reinterpretation of the corresponding element of this array.
Returns an array of Short containing all of the elements of this collection.
Converts this Map to a SortedMap. The resulting SortedMap determines the equality and order of keys according to their natural sorting order.
Converts this Map to a SortedMap. The resulting SortedMap determines the equality and order of keys according to the sorting order provided by the given comparator.
Returns a new SortedSet of all elements.
Returns a typed object array containing all of the elements of this primitive array.
Returns a typed object array containing all of the elements of this primitive array.
Returns a typed object array containing all of the elements of this primitive array.
Returns a typed array containing all of the elements of this collection.
Returns a typed object array containing all of the elements of this primitive array.
Returns a typed array containing all of the elements of this collection.
Returns a typed object array containing all of the elements of this primitive array.
Returns a typed array containing all of the elements of this collection.
Returns an array of UByte containing all of the elements of this generic array.
Returns an array of type UByteArray, which is a copy of this array where each element is an unsigned reinterpretation of the corresponding element of this array.
Returns an array of UByte containing all of the elements of this collection.
Returns an array of UInt containing all of the elements of this generic array.
Returns an array of type UIntArray, which is a copy of this array where each element is an unsigned reinterpretation of the corresponding element of this array.
Returns an array of UInt containing all of the elements of this collection.
Returns an array of ULong containing all of the elements of this generic array.
Returns an array of type ULongArray, which is a copy of this array where each element is an unsigned reinterpretation of the corresponding element of this array.
Returns an array of ULong containing all of the elements of this collection.
Returns an array of UShort containing all of the elements of this generic array.
Returns an array of type UShortArray, which is a copy of this array where each element is an unsigned reinterpretation of the corresponding element of this array.
Returns an array of UShort containing all of the elements of this collection.
Returns a set containing all distinct elements from both collections.
Returns a pair of lists, where first list is built from the first values of each pair from this array, second list is built from the second values of each pair from this array.
Returns a pair of lists, where first list is built from the first values of each pair from this collection, second list is built from the second values of each pair from this collection.
Returns a list of snapshots of the window of the given size sliding along this collection with the given step, where each snapshot is a list.
Returns a list of results of applying the given transform function to an each list representing a view over the window of the given size sliding along this collection with the given step.
Returns a wrapper of this read-only map, having the implicit default value provided with the specified function defaultValue.
Returns a wrapper of this mutable map, having the implicit default value provided with the specified function defaultValue.
Returns a lazy Iterable that wraps each element of the original array into an IndexedValue containing the index of that element and the element itself.
Returns a lazy Iterable that wraps each element of the original array into an IndexedValue containing the index of that element and the element itself.
Returns a lazy Iterable that wraps each element of the original collection into an IndexedValue containing the index of that element and the element itself.
Returns an Iterator that wraps each element produced by the original iterator into an IndexedValue containing the index of that element and the element itself.
Returns a list of pairs built from the elements of this
array and the other array with the same index. The returned list has length of the shortest collection.
Returns a list of pairs built from the elements of this
collection and other array with the same index. The returned list has length of the shortest collection.
Returns a list of pairs built from the elements of this
array and the other array with the same index. The returned list has length of the shortest collection.
Returns a list of pairs built from the elements of this
collection and other array with the same index. The returned list has length of the shortest collection.
Returns a list of pairs built from the elements of this
collection and the other array with the same index. The returned list has length of the shortest collection.
Returns a list of pairs built from the elements of this
collection and other collection with the same index. The returned list has length of the shortest collection.
Returns a list of values built from the elements of this
array and the other array with the same index using the provided transform function applied to each pair of elements. The returned list has length of the shortest collection.
Returns a list of values built from the elements of this
array and the other collection with the same index using the provided transform function applied to each pair of elements. The returned list has length of the shortest collection.
Returns a list of values built from the elements of this
array and the other array with the same index using the provided transform function applied to each pair of elements. The returned list has length of the shortest array.
Returns a list of values built from the elements of this
array and the other array with the same index using the provided transform function applied to each pair of elements. The returned list has length of the shortest collection.
Returns a list of values built from the elements of this
array and the other array with the same index using the provided transform function applied to each pair of elements. The returned list has length of the shortest array.
Returns a list of values built from the elements of this
array and the other collection with the same index using the provided transform function applied to each pair of elements. The returned list has length of the shortest collection.
Returns a list of values built from the elements of this
collection and the other array with the same index using the provided transform function applied to each pair of elements. The returned list has length of the shortest collection.
Returns a list of values built from the elements of this
collection and the other collection with the same index using the provided transform function applied to each pair of elements. The returned list has length of the shortest collection.
Returns a list of pairs of each two adjacent elements in this collection.
Returns a list containing the results of applying the given transform function to an each pair of two adjacent elements in this collection.