Package-level declarations
Collection types, such as Iterable, Collection, List, Set, Map and related top-level and extension functions.
Types
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 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.
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.
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.
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.
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.
Functions
Returns a List that wraps the original array.
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.
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.
Fills this array or its subrange with the specified element value.
Appends all elements that are instances of specified class to the given destination.
Creates an Iterator for an java.util.Enumeration, allowing to use it in for loops.
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.
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.
Returns a new java.util.SortedSet with the given elements.
Returns a new java.util.SortedSet with the given comparator and elements.
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.
Converts this Map to a Properties object.
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 array containing all of the elements of this collection.