diff --git a/docs/-kubit/kubit.collections.array/-bit-array/-bit-array.html b/docs/-kubit/kubit.collections.array/-bit-array/-bit-array.html index ac72a39..4128480 100644 --- a/docs/-kubit/kubit.collections.array/-bit-array/-bit-array.html +++ b/docs/-kubit/kubit.collections.array/-bit-array/-bit-array.html @@ -48,7 +48,7 @@
Iterates through the windows of the list with their indices and performs the given action on each window.
The desired size of each window. Must be greater than 0.
The step size between consecutive windows. Must be greater than 0, Defaults to 1.
Whether or not to include partial windows at the end of the list if any. Defaults to .
The function to be executed for each window and its index.
if windowSize or step is less than or equal to 0.
Iterates through the windows of the list with their indices and performs the given action on each window.
The desired size of each window. Must be greater than 0.
The step size between consecutive windows. Must be greater than 0, Defaults to 1.
Whether to include partial windows at the end. Defaults to false.
The function to be executed for each window and its index.
if windowSize or step is less than or equal to 0.
Iterates through the windows of the list and performs the given action on each window.
The desired size of each window. Must be greater than 0.
The step size between consecutive windows. Must be greater than 0. Defaults to 1.
Whether or not to include partial windows at the end of the list if any. Defaults to .
The function to be executed for each window.
if windowSize or step is less than or equal to 0.
Iterates through the windows of the list and performs the given action on each window.
The desired size of each window. Must be greater than 0.
The step size between consecutive windows. Must be greater than 0. Defaults to 1.
Whether to include partial windows at the end. Defaults to false.
The function to be executed for each window.
if windowSize or step is less than or equal to 0.
Returns a list of windows with the given windowSize sliding with the given step. Each window is a view into the original list. Changes in the original list will be reflected in the windows.
Returns a WindowedDoubleList with the given windowSize sliding by step. Each window is a view into the original list.
Returns a WindowedFloatList with the given windowSize sliding by step. Each window is a view into the original list.
Returns a WindowedIntList with the given windowSize sliding by step. Each window is a view into the original list.
Returns a WindowedLongList with the given windowSize sliding by step. Each window is a view into the original list.
Returns a list of windows with the given windowSize sliding with the given step. Each window is a view into the original list. Changes in the original list will be reflected in the windows.
A WindowedIntList containing the windows.
The desired size of each window. Must be greater than 0.
The step size between consecutive windows. Defaults to 1.
Whether or not to include partial windows at the end of the list if any. Defaults to .
if windowSize or step is less than or equal to 0.
Returns a list of windows with the given windowSize sliding with the given step. Each window is a view into the original list. Changes in the original list will be reflected in the windows.
A WindowedLongList containing the windows.
The desired size of each window. Must be greater than 0.
The step size between consecutive windows. Defaults to 1.
Whether or not to include partial windows at the end of the list if any. Defaults to .
if windowSize or step is less than or equal to 0.
Returns a list of windows with the given windowSize sliding with the given step. Each window is a view into the original list. Changes in the original list will be reflected in the windows.
A WindowedFloatList containing the windows.
The desired size of each window. Must be greater than 0.
The step size between consecutive windows. Defaults to 1.
Whether or not to include partial windows at the end of the list if any. Defaults to .
if windowSize or step is less than or equal to 0.
Returns a list of windows with the given windowSize sliding with the given step. Each window is a view into the original list. Changes in the original list will be reflected in the windows.
A WindowedDoubleList containing the windows.
The desired size of each window. Must be greater than 0.
The step size between consecutive windows. Defaults to 1.
Whether or not to include partial windows at the end of the list if any. Defaults to .
if windowSize or step is less than or equal to 0.
Returns a WindowedIntList with the given windowSize sliding by step. Each window is a view into the original list.
A WindowedIntList containing the windows.
The desired size of each window. Must be greater than 0.
The step size between consecutive windows. Defaults to 1.
Whether to include partial windows at the end. Defaults to false.
if windowSize or step is less than or equal to 0.
Returns a WindowedLongList with the given windowSize sliding by step. Each window is a view into the original list.
A WindowedLongList containing the windows.
The desired size of each window. Must be greater than 0.
The step size between consecutive windows. Defaults to 1.
Whether to include partial windows at the end. Defaults to false.
if windowSize or step is less than or equal to 0.
Returns a WindowedFloatList with the given windowSize sliding by step. Each window is a view into the original list.
A WindowedFloatList containing the windows.
The desired size of each window. Must be greater than 0.
The step size between consecutive windows. Defaults to 1.
Whether to include partial windows at the end. Defaults to false.
if windowSize or step is less than or equal to 0.
Returns a WindowedDoubleList with the given windowSize sliding by step. Each window is a view into the original list.
A WindowedDoubleList containing the windows.
The desired size of each window. Must be greater than 0.
The step size between consecutive windows. Defaults to 1.
Whether to include partial windows at the end. Defaults to false.
if windowSize or step is less than or equal to 0.
Returns a IntList containing all non-null elements.
Returns a LongList containing all non-null elements.
Returns a FloatList containing all non-null elements.
Returns a DoubleList containing all non-null elements.
Returns a IntList containing all non-null elements.
Returns a LongList containing all non-null elements.
Returns a FloatList containing all non-null elements.
Returns a DoubleList containing all non-null elements.
Returns a IntList containing only elements NOT matching the given predicate.
Returns a LongList containing only elements NOT matching the given predicate.
Returns a FloatList containing only elements NOT matching the given predicate.
Returns a DoubleList containing only elements NOT matching the given predicate.
Returns a IntList containing only elements NOT matching the given predicate.
Returns a LongList containing only elements NOT matching the given predicate.
Returns a FloatList containing only elements NOT matching the given predicate.
Returns a DoubleList containing only elements NOT matching the given predicate.
Returns a IntList containing only elements matching the given predicate.
Returns a LongList containing only elements matching the given predicate.
Returns a FloatList containing only elements matching the given predicate.
Returns a DoubleList containing only elements matching the given predicate.
Returns a IntList containing only elements matching the given predicate.
Returns a LongList containing only elements matching the given predicate.
Returns a FloatList containing only elements matching the given predicate.
Returns a DoubleList containing only elements matching the given predicate.
Serializer for DoubleList that handles serialization and deserialization of the list.
Serializer for DoubleList that handles serialization and deserialization of the list.
Creates a DoubleList with the specified size, where each element is calculated by calling the specified init function. init is called for each list element sequentially starting from the first one. It should return the value for a list element given its index.
The initial capacity of the list.
Function that takes an index and returns the element to be placed at that index.
Creates a DoubleList with the specified size, where each element is calculated by calling the specified init function. init is called for each list element sequentially starting from the first one. It should return the value for a list element given its index.
The initial capacity of the list.
Function that takes an index and returns the element to be placed at that index.
Returns true if at least n elements in the list match the given predicate.
true if at least n elements match the predicate, false otherwise.
The minimum number of elements that must match the predicate.
A function that takes an element of type T and returns a Boolean.
if n is negative.
Returns true if at least n elements in the list match the given predicate.
true if at least n elements match the predicate, false otherwise.
The minimum number of elements that must match the predicate.
A function that takes an element of type T and returns a Boolean.
if n is negative.
Returns true if at most n elements in the list match the given predicate.
true if at most n elements match the predicate, false otherwise.
The maximum number of elements that may match the predicate.
A function that takes an element of type T and returns a Boolean.
if n is negative.
Returns true if at most n elements in the list match the given predicate.
true if at most n elements match the predicate, false otherwise.
The maximum number of elements that may match the predicate.
A function that takes an element of type T and returns a Boolean.
if n is negative.
Searches this list the specified element in the range defined by fromIndex and toIndex. The list is expected to be sorted into ascending order according to the natural ordering of its elements, otherwise the result is undefined.
fromIndex must be >= 0 and <toIndex, and toIndex must be <= size, otherwise an an IndexOutOfBoundsException will be thrown.
the index of the element if it is contained in the list within the specified range. otherwise, the inverted insertion point (-insertionPoint - 1). The insertion point is defined as the index at which the element should be inserted, so that the list remains sorted.
Searches this list the specified element in the range defined by fromIndex and toIndex. The list is expected to be sorted into ascending order according to the natural ordering of its elements, otherwise the result is undefined.
fromIndex must be >= 0 and <toIndex, and toIndex must be <= size, otherwise an an IndexOutOfBoundsException will be thrown.
the index of the element if it is contained in the list within the specified range. otherwise, the inverted insertion point (-insertionPoint - 1). The insertion point is defined as the index at which the element should be inserted, so that the list remains sorted.
Splits this list into chunks of specified size.
the size of each chunk
if chunkSize is not positive
Splits this list into chunks of specified size.
the size of each chunk
if chunkSize is not positive
Returns true if the DoubleList contains all elements in elements or false if one or more are missing.
Returns true if the DoubleList contains all elements in elements or false if one or more are missing.
Returns a new list that is a copy of the current list.
Returns a new list that is a copy of the current list.
Returns a new list containing only distinct elements from the current list.
Returns a new list containing only distinct elements from the current list.
Returns a new DoubleList containing all elements except the last elements that satisfy the given predicate.
A DoubleList with the trailing contiguous elements matching predicate removed.
Function that tests each element for a condition.
Returns a new DoubleList containing all elements except the last elements that satisfy the given predicate.
A DoubleList with the trailing contiguous elements matching predicate removed.
Function that tests each element for a condition.
Returns a new list containing all elements except the first elements that satisfy the given predicate.
A DoubleList containing the trailing elements after the initial contiguous elements matching predicate.
Function that tests each element for a condition.
Returns a new list containing all elements except the first elements that satisfy the given predicate.
A DoubleList containing the trailing elements after the initial contiguous elements matching predicate.
Function that tests each element for a condition.
Returns the element at the given index or defaultValue if index is out of bounds of the collection.
The index of the element whose value should be returned
A lambda to call with index as a parameter to return a value at an index not in the list.
Returns the element at the given index or defaultValue if index is out of bounds of the collection.
The index of the element whose value should be returned
A lambda to call with index as a parameter to return a value at an index not in the list.
Returns the first element in the DoubleList or throws a NoSuchElementException if it isEmpty.
Returns the first element in the DoubleList for which predicate returns true or throws NoSuchElementException if nothing matches.
Returns the first element in the DoubleList or throws a NoSuchElementException if it isEmpty.
Returns the first element in the DoubleList for which predicate returns true or throws NoSuchElementException if nothing matches.
Accumulates values, starting with initial, and applying operation to each element in the DoubleList in reverse order.
The value of acc for the first call to operation or return value if there are no elements in this list.
function that takes an element and the current accumulator value, and calculates the next accumulator value.
Accumulates values, starting with initial, and applying operation to each element in the DoubleList in reverse order.
The value of acc for the first call to operation or return value if there are no elements in this list.
function that takes an element and the current accumulator value, and calculates the next accumulator value.
Accumulates values, starting with initial, and applying operation to each element in the DoubleList in order.
The value of acc for the first call to operation or return value if there are no elements in this list.
function that takes current accumulator value and an element, and calculates the next accumulator value.
Accumulates values, starting with initial, and applying operation to each element in the DoubleList in order.
The value of acc for the first call to operation or return value if there are no elements in this list.
function that takes current accumulator value and an element, and calculates the next accumulator value.
Calls block for each element in the DoubleList along with its index, in order.
will be executed for every element in the list, accepting the index and the element at that index.
Calls block for each element in the DoubleList along with its index, in order.
will be executed for every element in the list, accepting the index and the element at that index.
Calls block for each element in the DoubleList along with its index, in reverse order.
will be executed for every element in the list, accepting the index and the element at that index.
Calls block for each element in the DoubleList along with its index, in reverse order.
will be executed for every element in the list, accepting the index and the element at that index.
Calls block for each element in the DoubleList in reverse order.
will be executed for every element in the list, accepting an element from the list
Calls block for each element in the DoubleList in reverse order.
will be executed for every element in the list, accepting an element from the list
Returns a hash code based on the contents of the DoubleList.
Returns a hash code based on the contents of the DoubleList.
Returns the index if the first element in the DoubleList for which predicate returns true.
Returns the index if the first element in the DoubleList for which predicate returns true.
Returns the index if the last element in the DoubleList for which predicate returns true.
Returns the index if the last element in the DoubleList for which predicate returns true.
DoubleList is a List-like collection for Double values. It allows retrieving the elements without boxing. DoubleList is always backed by a MutableDoubleList, its MutableList-like subclass. The purpose of this class is to avoid the performance overhead of auto-boxing due to generics since Collection classes all operate on objects.
This implementation is not thread-safe: if multiple threads access this container concurrently, and one or more threads modify the structure of the list (insertion or removal for instance), the calling code must provide the appropriate synchronization. It is also not safe to mutate during reentrancy -- in the middle of a forEach, for example. However, concurrent reads are safe.
DoubleList is a List-like collection for Double values. It allows retrieving the elements without boxing. DoubleList is always backed by a MutableDoubleList, its MutableList-like subclass. The purpose of this class is to avoid the performance overhead of auto-boxing due to generics since Collection classes all operate on objects.
This implementation is not thread-safe: if multiple threads access this container concurrently, and one or more threads modify the structure of the list (insertion or removal for instance), the calling code must provide the appropriate synchronization. It is also not safe to mutate during reentrancy -- in the middle of a forEach, for example. However, concurrent reads are safe.
Returns an IntRange of the valid indices for this DoubleList.
Returns an IntRange of the valid indices for this DoubleList.
Returns the last valid index in the DoubleList. This can be -1 when the list is empty.
Returns the last valid index in the DoubleList. This can be -1 when the list is empty.
The number of elements in the DoubleList.
The number of elements in the DoubleList.
Returns the element at the given index or defaultValue if index is out of bounds of the collection.
Returns the element at the given index or defaultValue if index is out of bounds of the collection.
Returns a list of windows with the given windowSize sliding with the given step. Each window is a view into the original list. Changes in the original list will be reflected in the windows.
Returns a WindowedDoubleList with the given windowSize sliding by step. Each window is a view into the original list.
Returns an IntRange of the valid indices for this DoubleList.
Returns an IntRange of the valid indices for this DoubleList.
Returns true if the DoubleList has no elements in it or false otherwise.
Returns true if the DoubleList has no elements in it or false otherwise.
Returns true if there are elements in the DoubleList or false if it is empty.
Returns true if there are elements in the DoubleList or false if it is empty.
Creates a String from the elements separated by separator and using prefix before and postfix after, if supplied.
When a non-negative value of limit is provided, a maximum of limit items are used to generate the string. If the collection holds more than limit items, the string is terminated with truncated.
Creates a String from the elements separated by separator and using prefix before and postfix after, if supplied. transform dictates how each element will be represented.
When a non-negative value of limit is provided, a maximum of limit items are used to generate the string. If the collection holds more than limit items, the string is terminated with truncated.
Creates a String from the elements separated by separator and using prefix before and postfix after, if supplied.
When a non-negative value of limit is provided, a maximum of limit items are used to generate the string. If the collection holds more than limit items, the string is terminated with truncated.
Creates a String from the elements separated by separator and using prefix before and postfix after, if supplied. transform dictates how each element will be represented.
When a non-negative value of limit is provided, a maximum of limit items are used to generate the string. If the collection holds more than limit items, the string is terminated with truncated.
Returns the index of the last element in the DoubleList that is the same as element or -1 if no elements match.
Returns the index of the last element in the DoubleList that is the same as element or -1 if no elements match.
Returns the last valid index in the DoubleList. This can be -1 when the list is empty.
Returns the last valid index in the DoubleList. This can be -1 when the list is empty.
Returns the last element in the DoubleList or throws a NoSuchElementException if it isEmpty.
Returns the last element in the DoubleList for which predicate returns true or throws NoSuchElementException if nothing matches.
Returns the last element in the DoubleList or throws a NoSuchElementException if it isEmpty.
Returns the last element in the DoubleList for which predicate returns true or throws NoSuchElementException if nothing matches.
Returns a new list with all elements in reversed order.
Returns a new list with all elements in reversed order.
Returns a new list of all elements sorted according to descending natural sort order.
Returns a new list of all elements sorted according to descending natural sort order.
Returns a new list of all elements sorted according to natural sort order.
Returns a new list of all elements sorted according to natural sort order.
Returns a new DoubleList containing the last elements that satisfy the given predicate.
A DoubleList containing the final contiguous elements matching predicate.
Function that tests each element for a condition.
Returns a new DoubleList containing the last elements that satisfy the given predicate.
A DoubleList containing the final contiguous elements matching predicate.
Function that tests each element for a condition.
Returns a new DoubleList containing the first elements that satisfy the given predicate.
A DoubleList containing the initial contiguous elements matching predicate.
Function that tests each element for a condition.
Returns a new DoubleList containing the first elements that satisfy the given predicate.
A DoubleList containing the initial contiguous elements matching predicate.
Function that tests each element for a condition.
Returns a DoubleArray containing all elements from this list in the same order.
Returns a DoubleArray containing all elements from this list in the same order.
Return a MutableSet of all elements. The returned set does NOT guarantee the element iteration order of the list.
Return a MutableSet of all elements. The returned set does NOT guarantee the element iteration order of the list.
Serializer for FloatList that handles serialization and deserialization of the list.
Serializer for FloatList that handles serialization and deserialization of the list.
Creates a FloatList with the specified size, where each element is calculated by calling the specified init function. init is called for each list element sequentially starting from the first one. It should return the value for a list element given its index.
The initial capacity of the list.
Function that takes an index and returns the element to be placed at that index.
Creates a FloatList with the specified size, where each element is calculated by calling the specified init function. init is called for each list element sequentially starting from the first one. It should return the value for a list element given its index.
The initial capacity of the list.
Function that takes an index and returns the element to be placed at that index.
Returns true if at least n elements in the list match the given predicate.
true if at least n elements match the predicate, false otherwise.
The minimum number of elements that must match the predicate.
A function that takes an element of type T and returns a Boolean.
if n is negative.
Returns true if at least n elements in the list match the given predicate.
true if at least n elements match the predicate, false otherwise.
The minimum number of elements that must match the predicate.
A function that takes an element of type T and returns a Boolean.
if n is negative.
Returns true if at most n elements in the list match the given predicate.
true if at most n elements match the predicate, false otherwise.
The maximum number of elements that may match the predicate.
A function that takes an element of type T and returns a Boolean.
if n is negative.
Returns true if at most n elements in the list match the given predicate.
true if at most n elements match the predicate, false otherwise.
The maximum number of elements that may match the predicate.
A function that takes an element of type T and returns a Boolean.
if n is negative.
Searches this list the specified element in the range defined by fromIndex and toIndex. The list is expected to be sorted into ascending order according to the natural ordering of its elements, otherwise the result is undefined.
fromIndex must be >= 0 and <toIndex, and toIndex must be <= size, otherwise an an IndexOutOfBoundsException will be thrown.
the index of the element if it is contained in the list within the specified range. otherwise, the inverted insertion point (-insertionPoint - 1). The insertion point is defined as the index at which the element should be inserted, so that the list remains sorted.
Searches this list the specified element in the range defined by fromIndex and toIndex. The list is expected to be sorted into ascending order according to the natural ordering of its elements, otherwise the result is undefined.
fromIndex must be >= 0 and <toIndex, and toIndex must be <= size, otherwise an an IndexOutOfBoundsException will be thrown.
the index of the element if it is contained in the list within the specified range. otherwise, the inverted insertion point (-insertionPoint - 1). The insertion point is defined as the index at which the element should be inserted, so that the list remains sorted.
Returns the element at the given index or defaultValue if index is out of bounds of the collection.
The index of the element whose value should be returned
A lambda to call with index as a parameter to return a value at an index not in the list.
Returns the element at the given index or defaultValue if index is out of bounds of the collection.
The index of the element whose value should be returned
A lambda to call with index as a parameter to return a value at an index not in the list.
Returns the first element in the FloatList or throws a NoSuchElementException if it isEmpty.
Returns the first element in the FloatList for which predicate returns true or throws NoSuchElementException if nothing matches.
Returns the first element in the FloatList or throws a NoSuchElementException if it isEmpty.
Returns the first element in the FloatList for which predicate returns true or throws NoSuchElementException if nothing matches.
Accumulates values, starting with initial, and applying operation to each element in the FloatList in reverse order.
The value of acc for the first call to operation or return value if there are no elements in this list.
function that takes an element and the current accumulator value, and calculates the next accumulator value.
Accumulates values, starting with initial, and applying operation to each element in the FloatList in reverse order.
The value of acc for the first call to operation or return value if there are no elements in this list.
function that takes an element and the current accumulator value, and calculates the next accumulator value.
Accumulates values, starting with initial, and applying operation to each element in the FloatList in order.
The value of acc for the first call to operation or return value if there are no elements in this list.
function that takes current accumulator value and an element, and calculates the next accumulator value.
Accumulates values, starting with initial, and applying operation to each element in the FloatList in order.
The value of acc for the first call to operation or return value if there are no elements in this list.
function that takes current accumulator value and an element, and calculates the next accumulator value.
FloatList is a List-like collection for Float values. It allows retrieving the elements without boxing. FloatList is always backed by a MutableFloatList, its MutableList-like subclass. The purpose of this class is to avoid the performance overhead of auto-boxing due to generics since Collection classes all operate on objects.
This implementation is not thread-safe: if multiple threads access this container concurrently, and one or more threads modify the structure of the list (insertion or removal for instance), the calling code must provide the appropriate synchronization. It is also not safe to mutate during reentrancy -- in the middle of a forEach, for example. However, concurrent reads are safe.
FloatList is a List-like collection for Float values. It allows retrieving the elements without boxing. FloatList is always backed by a MutableFloatList, its MutableList-like subclass. The purpose of this class is to avoid the performance overhead of auto-boxing due to generics since Collection classes all operate on objects.
This implementation is not thread-safe: if multiple threads access this container concurrently, and one or more threads modify the structure of the list (insertion or removal for instance), the calling code must provide the appropriate synchronization. It is also not safe to mutate during reentrancy -- in the middle of a forEach, for example. However, concurrent reads are safe.
Returns the element at the given index or defaultValue if index is out of bounds of the collection.
Returns the element at the given index or defaultValue if index is out of bounds of the collection.
Returns a list of windows with the given windowSize sliding with the given step. Each window is a view into the original list. Changes in the original list will be reflected in the windows.
Returns a WindowedFloatList with the given windowSize sliding by step. Each window is a view into the original list.
Returns true if there are elements in the FloatList or false if it is empty.
Returns true if there are elements in the FloatList or false if it is empty.
Creates a String from the elements separated by separator and using prefix before and postfix after, if supplied.
When a non-negative value of limit is provided, a maximum of limit items are used to generate the string. If the collection holds more than limit items, the string is terminated with truncated.
Creates a String from the elements separated by separator and using prefix before and postfix after, if supplied. transform dictates how each element will be represented.
When a non-negative value of limit is provided, a maximum of limit items are used to generate the string. If the collection holds more than limit items, the string is terminated with truncated.
Creates a String from the elements separated by separator and using prefix before and postfix after, if supplied.
When a non-negative value of limit is provided, a maximum of limit items are used to generate the string. If the collection holds more than limit items, the string is terminated with truncated.
Creates a String from the elements separated by separator and using prefix before and postfix after, if supplied. transform dictates how each element will be represented.
When a non-negative value of limit is provided, a maximum of limit items are used to generate the string. If the collection holds more than limit items, the string is terminated with truncated.
Returns the last element in the FloatList or throws a NoSuchElementException if it isEmpty.
Returns the last element in the FloatList for which predicate returns true or throws NoSuchElementException if nothing matches.
Returns the last element in the FloatList or throws a NoSuchElementException if it isEmpty.
Returns the last element in the FloatList for which predicate returns true or throws NoSuchElementException if nothing matches.
Returns a new list of all elements sorted according to descending natural sort order.
Returns a new list of all elements sorted according to descending natural sort order.
Returns a FloatArray containing all elements from this list in the same order.
Returns a FloatArray containing all elements from this list in the same order.
Return a MutableSet of all elements. The returned set does NOT guarantee the element iteration order of the list.
Return a MutableSet of all elements. The returned set does NOT guarantee the element iteration order of the list.
Serializer for IntList that handles serialization and deserialization of the list.
Serializer for IntList that handles serialization and deserialization of the list.
Creates a IntList with the specified size, where each element is calculated by calling the specified init function. init is called for each list element sequentially starting from the first one. It should return the value for a list element given its index.
The initial capacity of the list.
Function that takes an index and returns the element to be placed at that index.
Creates a IntList with the specified size, where each element is calculated by calling the specified init function. init is called for each list element sequentially starting from the first one. It should return the value for a list element given its index.
The initial capacity of the list.
Function that takes an index and returns the element to be placed at that index.
Returns true if at least n elements in the list match the given predicate.
true if at least n elements match the predicate, false otherwise.
The minimum number of elements that must match the predicate.
A function that takes an element of type T and returns a Boolean.
if n is negative.
Returns true if at least n elements in the list match the given predicate.
true if at least n elements match the predicate, false otherwise.
The minimum number of elements that must match the predicate.
A function that takes an element of type T and returns a Boolean.
if n is negative.
Returns true if at most n elements in the list match the given predicate.
true if at most n elements match the predicate, false otherwise.
The maximum number of elements that may match the predicate.
A function that takes an element of type T and returns a Boolean.
if n is negative.
Returns true if at most n elements in the list match the given predicate.
true if at most n elements match the predicate, false otherwise.
The maximum number of elements that may match the predicate.
A function that takes an element of type T and returns a Boolean.
if n is negative.
Searches this list the specified element in the range defined by fromIndex and toIndex. The list is expected to be sorted into ascending order according to the natural ordering of its elements, otherwise the result is undefined.
fromIndex must be >= 0 and <toIndex, and toIndex must be <= size, otherwise an an IndexOutOfBoundsException will be thrown.
the index of the element if it is contained in the list within the specified range. otherwise, the inverted insertion point (-insertionPoint - 1). The insertion point is defined as the index at which the element should be inserted, so that the list remains sorted.
Searches this list the specified element in the range defined by fromIndex and toIndex. The list is expected to be sorted into ascending order according to the natural ordering of its elements, otherwise the result is undefined.
fromIndex must be >= 0 and <toIndex, and toIndex must be <= size, otherwise an an IndexOutOfBoundsException will be thrown.
the index of the element if it is contained in the list within the specified range. otherwise, the inverted insertion point (-insertionPoint - 1). The insertion point is defined as the index at which the element should be inserted, so that the list remains sorted.
Returns the element at the given index or defaultValue if index is out of bounds of the collection.
The index of the element whose value should be returned
A lambda to call with index as a parameter to return a value at an index not in the list.
Returns the element at the given index or defaultValue if index is out of bounds of the collection.
The index of the element whose value should be returned
A lambda to call with index as a parameter to return a value at an index not in the list.
Returns the first element in the IntList or throws a NoSuchElementException if it isEmpty.
Returns the first element in the IntList for which predicate returns true or throws NoSuchElementException if nothing matches.
Returns the first element in the IntList or throws a NoSuchElementException if it isEmpty.
Returns the first element in the IntList for which predicate returns true or throws NoSuchElementException if nothing matches.
Accumulates values, starting with initial, and applying operation to each element in the IntList in reverse order.
The value of acc for the first call to operation or return value if there are no elements in this list.
function that takes an element and the current accumulator value, and calculates the next accumulator value.
Accumulates values, starting with initial, and applying operation to each element in the IntList in reverse order.
The value of acc for the first call to operation or return value if there are no elements in this list.
function that takes an element and the current accumulator value, and calculates the next accumulator value.
Accumulates values, starting with initial, and applying operation to each element in the IntList in order.
The value of acc for the first call to operation or return value if there are no elements in this list.
function that takes current accumulator value and an element, and calculates the next accumulator value.
Accumulates values, starting with initial, and applying operation to each element in the IntList in order.
The value of acc for the first call to operation or return value if there are no elements in this list.
function that takes current accumulator value and an element, and calculates the next accumulator value.
IntList is a List-like collection for Int values. It allows retrieving the elements without boxing. IntList is always backed by a MutableIntList, its MutableList-like subclass. The purpose of this class is to avoid the performance overhead of auto-boxing due to generics since Collection classes all operate on objects.
This implementation is not thread-safe: if multiple threads access this container concurrently, and one or more threads modify the structure of the list (insertion or removal for instance), the calling code must provide the appropriate synchronization. It is also not safe to mutate during reentrancy -- in the middle of a forEach, for example. However, concurrent reads are safe.
IntList is a List-like collection for Int values. It allows retrieving the elements without boxing. IntList is always backed by a MutableIntList, its MutableList-like subclass. The purpose of this class is to avoid the performance overhead of auto-boxing due to generics since Collection classes all operate on objects.
This implementation is not thread-safe: if multiple threads access this container concurrently, and one or more threads modify the structure of the list (insertion or removal for instance), the calling code must provide the appropriate synchronization. It is also not safe to mutate during reentrancy -- in the middle of a forEach, for example. However, concurrent reads are safe.
Returns the element at the given index or defaultValue if index is out of bounds of the collection.
Returns the element at the given index or defaultValue if index is out of bounds of the collection.
Returns a list of windows with the given windowSize sliding with the given step. Each window is a view into the original list. Changes in the original list will be reflected in the windows.
Returns a WindowedIntList with the given windowSize sliding by step. Each window is a view into the original list.
Returns true if there are elements in the IntList or false if it is empty.
Returns true if there are elements in the IntList or false if it is empty.
Creates a String from the elements separated by separator and using prefix before and postfix after, if supplied.
When a non-negative value of limit is provided, a maximum of limit items are used to generate the string. If the collection holds more than limit items, the string is terminated with truncated.
Creates a String from the elements separated by separator and using prefix before and postfix after, if supplied. transform dictates how each element will be represented.
When a non-negative value of limit is provided, a maximum of limit items are used to generate the string. If the collection holds more than limit items, the string is terminated with truncated.
Creates a String from the elements separated by separator and using prefix before and postfix after, if supplied.
When a non-negative value of limit is provided, a maximum of limit items are used to generate the string. If the collection holds more than limit items, the string is terminated with truncated.
Creates a String from the elements separated by separator and using prefix before and postfix after, if supplied. transform dictates how each element will be represented.
When a non-negative value of limit is provided, a maximum of limit items are used to generate the string. If the collection holds more than limit items, the string is terminated with truncated.
Returns the last element in the IntList or throws a NoSuchElementException if it isEmpty.
Returns the last element in the IntList for which predicate returns true or throws NoSuchElementException if nothing matches.
Returns the last element in the IntList or throws a NoSuchElementException if it isEmpty.
Returns the last element in the IntList for which predicate returns true or throws NoSuchElementException if nothing matches.
Returns a new list of all elements sorted according to descending natural sort order.
Returns a new list of all elements sorted according to descending natural sort order.
Returns a IntArray containing all elements from this list in the same order.
Returns a IntArray containing all elements from this list in the same order.
Return a MutableSet of all elements. The returned set does NOT guarantee the element iteration order of the list.
Return a MutableSet of all elements. The returned set does NOT guarantee the element iteration order of the list.
Serializer for LongList that handles serialization and deserialization of the list.
Serializer for LongList that handles serialization and deserialization of the list.
Creates a LongList with the specified size, where each element is calculated by calling the specified init function. init is called for each list element sequentially starting from the first one. It should return the value for a list element given its index.
The initial capacity of the list.
Function that takes an index and returns the element to be placed at that index.
Creates a LongList with the specified size, where each element is calculated by calling the specified init function. init is called for each list element sequentially starting from the first one. It should return the value for a list element given its index.
The initial capacity of the list.
Function that takes an index and returns the element to be placed at that index.
Returns true if at least n elements in the list match the given predicate.
true if at least n elements match the predicate, false otherwise.
The minimum number of elements that must match the predicate.
A function that takes an element of type T and returns a Boolean.
if n is negative.
Returns true if at least n elements in the list match the given predicate.
true if at least n elements match the predicate, false otherwise.
The minimum number of elements that must match the predicate.
A function that takes an element of type T and returns a Boolean.
if n is negative.
Returns true if at most n elements in the list match the given predicate.
true if at most n elements match the predicate, false otherwise.
The maximum number of elements that may match the predicate.
A function that takes an element of type T and returns a Boolean.
if n is negative.
Returns true if at most n elements in the list match the given predicate.
true if at most n elements match the predicate, false otherwise.
The maximum number of elements that may match the predicate.
A function that takes an element of type T and returns a Boolean.
if n is negative.
Searches this list the specified element in the range defined by fromIndex and toIndex. The list is expected to be sorted into ascending order according to the natural ordering of its elements, otherwise the result is undefined.
fromIndex must be >= 0 and <toIndex, and toIndex must be <= size, otherwise an an IndexOutOfBoundsException will be thrown.
the index of the element if it is contained in the list within the specified range. otherwise, the inverted insertion point (-insertionPoint - 1). The insertion point is defined as the index at which the element should be inserted, so that the list remains sorted.
Searches this list the specified element in the range defined by fromIndex and toIndex. The list is expected to be sorted into ascending order according to the natural ordering of its elements, otherwise the result is undefined.
fromIndex must be >= 0 and <toIndex, and toIndex must be <= size, otherwise an an IndexOutOfBoundsException will be thrown.
the index of the element if it is contained in the list within the specified range. otherwise, the inverted insertion point (-insertionPoint - 1). The insertion point is defined as the index at which the element should be inserted, so that the list remains sorted.
Returns the element at the given index or defaultValue if index is out of bounds of the collection.
The index of the element whose value should be returned
A lambda to call with index as a parameter to return a value at an index not in the list.
Returns the element at the given index or defaultValue if index is out of bounds of the collection.
The index of the element whose value should be returned
A lambda to call with index as a parameter to return a value at an index not in the list.
Returns the first element in the LongList or throws a NoSuchElementException if it isEmpty.
Returns the first element in the LongList for which predicate returns true or throws NoSuchElementException if nothing matches.
Returns the first element in the LongList or throws a NoSuchElementException if it isEmpty.
Returns the first element in the LongList for which predicate returns true or throws NoSuchElementException if nothing matches.
Accumulates values, starting with initial, and applying operation to each element in the LongList in reverse order.
The value of acc for the first call to operation or return value if there are no elements in this list.
function that takes an element and the current accumulator value, and calculates the next accumulator value.
Accumulates values, starting with initial, and applying operation to each element in the LongList in reverse order.
The value of acc for the first call to operation or return value if there are no elements in this list.
function that takes an element and the current accumulator value, and calculates the next accumulator value.
Accumulates values, starting with initial, and applying operation to each element in the LongList in order.
The value of acc for the first call to operation or return value if there are no elements in this list.
function that takes current accumulator value and an element, and calculates the next accumulator value.
Accumulates values, starting with initial, and applying operation to each element in the LongList in order.
The value of acc for the first call to operation or return value if there are no elements in this list.
function that takes current accumulator value and an element, and calculates the next accumulator value.
LongList is a List-like collection for Long values. It allows retrieving the elements without boxing. LongList is always backed by a MutableLongList, its MutableList-like subclass. The purpose of this class is to avoid the performance overhead of auto-boxing due to generics since Collection classes all operate on objects.
This implementation is not thread-safe: if multiple threads access this container concurrently, and one or more threads modify the structure of the list (insertion or removal for instance), the calling code must provide the appropriate synchronization. It is also not safe to mutate during reentrancy -- in the middle of a forEach, for example. However, concurrent reads are safe.
LongList is a List-like collection for Long values. It allows retrieving the elements without boxing. LongList is always backed by a MutableLongList, its MutableList-like subclass. The purpose of this class is to avoid the performance overhead of auto-boxing due to generics since Collection classes all operate on objects.
This implementation is not thread-safe: if multiple threads access this container concurrently, and one or more threads modify the structure of the list (insertion or removal for instance), the calling code must provide the appropriate synchronization. It is also not safe to mutate during reentrancy -- in the middle of a forEach, for example. However, concurrent reads are safe.
Returns the element at the given index or defaultValue if index is out of bounds of the collection.
Returns the element at the given index or defaultValue if index is out of bounds of the collection.
Returns a list of windows with the given windowSize sliding with the given step. Each window is a view into the original list. Changes in the original list will be reflected in the windows.
Returns a WindowedLongList with the given windowSize sliding by step. Each window is a view into the original list.
Returns true if there are elements in the LongList or false if it is empty.
Returns true if there are elements in the LongList or false if it is empty.
Creates a String from the elements separated by separator and using prefix before and postfix after, if supplied.
When a non-negative value of limit is provided, a maximum of limit items are used to generate the string. If the collection holds more than limit items, the string is terminated with truncated.
Creates a String from the elements separated by separator and using prefix before and postfix after, if supplied. transform dictates how each element will be represented.
When a non-negative value of limit is provided, a maximum of limit items are used to generate the string. If the collection holds more than limit items, the string is terminated with truncated.
Creates a String from the elements separated by separator and using prefix before and postfix after, if supplied.
When a non-negative value of limit is provided, a maximum of limit items are used to generate the string. If the collection holds more than limit items, the string is terminated with truncated.
Creates a String from the elements separated by separator and using prefix before and postfix after, if supplied. transform dictates how each element will be represented.
When a non-negative value of limit is provided, a maximum of limit items are used to generate the string. If the collection holds more than limit items, the string is terminated with truncated.
Returns the last element in the LongList or throws a NoSuchElementException if it isEmpty.
Returns the last element in the LongList for which predicate returns true or throws NoSuchElementException if nothing matches.
Returns the last element in the LongList or throws a NoSuchElementException if it isEmpty.
Returns the last element in the LongList for which predicate returns true or throws NoSuchElementException if nothing matches.
Returns a new list of all elements sorted according to descending natural sort order.
Returns a new list of all elements sorted according to descending natural sort order.
Returns a LongArray containing all elements from this list in the same order.
Returns a LongArray containing all elements from this list in the same order.
Return a MutableSet of all elements. The returned set does NOT guarantee the element iteration order of the list.
Return a MutableSet of all elements. The returned set does NOT guarantee the element iteration order of the list.
Creates a MutableDoubleList with the specified size, where each element is calculated by calling the specified init function. init is called for each list element sequentially starting from the first one. It should return the value for a list element given its index.
The initial capacity of the list.
Function that takes an index and returns the element to be placed at that index.
Creates a MutableDoubleList with the specified size, where each element is calculated by calling the specified init function. init is called for each list element sequentially starting from the first one. It should return the value for a list element given its index.
The initial capacity of the list.
Function that takes an index and returns the element to be placed at that index.
Creates a MutableDoubleList with a capacity of initialCapacity.
Creates a MutableDoubleList with a capacity of initialCapacity.
Adds all elements to the MutableDoubleList at the given index, shifting over any elements at index and after, if any.
true if the MutableDoubleList was changed or false if elements was empty
if index isn't between 0 and size, inclusive.
Adds all elements to the MutableDoubleList at the given index, shifting over any elements at index and after, if any.
true if the MutableDoubleList was changed or false if elements was empty
if index isn't between 0 and size, inclusive
Adds all elements to the end of the MutableDoubleList and returns true if the MutableDoubleList was changed or false if elements was empty.
Adds all elements to the MutableDoubleList at the given index, shifting over any elements at index and after, if any.
true if the MutableDoubleList was changed or false if elements was empty
if index isn't between 0 and size, inclusive.
Adds all elements to the MutableDoubleList at the given index, shifting over any elements at index and after, if any.
true if the MutableDoubleList was changed or false if elements was empty
if index isn't between 0 and size, inclusive
Adds all elements to the end of the MutableDoubleList and returns true if the MutableDoubleList was changed or false if elements was empty.
Adds element to the MutableDoubleList and returns true.
Adds element to the MutableDoubleList at the given index, shifting over any elements at index and after, if any.
if index isn't between 0 and size, inclusive
Adds element to the MutableDoubleList and returns true.
Adds element to the MutableDoubleList at the given index, shifting over any elements at index and after, if any.
if index isn't between 0 and size, inclusive
Returns the total number of elements that can be held before the MutableDoubleList must grow.
Returns the total number of elements that can be held before the MutableDoubleList must grow.
Removes all elements in the MutableDoubleList. The storage isn't released.
Removes all elements in the MutableDoubleList. The storage isn't released.
Ensures that there is enough space to store capacity elements in the MutableDoubleList.
Ensures that there is enough space to store capacity elements in the MutableDoubleList.
MutableDoubleList is a MutableList-like collection for Double values. It allows storing and retrieving the elements without boxing. Immutable access is available through its base class DoubleList, which has a List-like interface.
This implementation is not thread-safe: if multiple threads access this container concurrently, and one or more threads modify the structure of the list (insertion or removal for instance), the calling code must provide the appropriate synchronization. It is also not safe to mutate during reentrancy -- in the middle of a forEach, for example. However, concurrent reads are safe.
MutableDoubleList is a MutableList-like collection for Double values. It allows storing and retrieving the elements without boxing. Immutable access is available through its base class DoubleList, which has a List-like interface.
This implementation is not thread-safe: if multiple threads access this container concurrently, and one or more threads modify the structure of the list (insertion or removal for instance), the calling code must provide the appropriate synchronization. It is also not safe to mutate during reentrancy -- in the middle of a forEach, for example. However, concurrent reads are safe.
Returns an IntRange of the valid indices for this DoubleList.
Returns an IntRange of the valid indices for this DoubleList.
Returns the last valid index in the DoubleList. This can be -1 when the list is empty.
Returns the last valid index in the DoubleList. This can be -1 when the list is empty.
The number of elements in the DoubleList.
The number of elements in the DoubleList.
Adds all elements to the end of the MutableDoubleList and returns true if the MutableDoubleList was changed or false if elements was empty.
Adds all elements to the MutableDoubleList at the given index, shifting over any elements at index and after, if any.
Adds all elements to the end of the MutableDoubleList and returns true if the MutableDoubleList was changed or false if elements was empty.
Adds all elements to the MutableDoubleList at the given index, shifting over any elements at index and after, if any.
Returns the element at the given index or defaultValue if index is out of bounds of the collection.
Returns the element at the given index or defaultValue if index is out of bounds of the collection.
Returns a list of windows with the given windowSize sliding with the given step. Each window is a view into the original list. Changes in the original list will be reflected in the windows.
Returns a WindowedDoubleList with the given windowSize sliding by step. Each window is a view into the original list.
Removes all elements from the MutableDoubleList and returns true if anything was removed.
Removes all elements from the MutableDoubleList and returns true if anything was removed.
Removes element from the MutableDoubleList. If element was in the MutableDoubleList and was removed, true will be returned, or false will be returned if the element was not found.
Removes element from the MutableDoubleList. If element was in the MutableDoubleList and was removed, true will be returned, or false will be returned if the element was not found.
Keeps only elements in the MutableDoubleList and removes all other values.
true if the MutableDoubleList has changed.
Keeps only elements in the MutableDoubleList and removes all other values.
true if the MutableDoubleList has changed.
Sorts the MutableDoubleList elements in descending order.
Sorts the MutableDoubleList elements in descending order.
Sorts the MutableDoubleList elements in ascending order.
Sorts the MutableDoubleList elements in ascending order.
Reduces the internal storage. If capacity is greater than minCapacity and size, the internal storage is reduced to the maximum of size and minCapacity.
Reduces the internal storage. If capacity is greater than minCapacity and size, the internal storage is reduced to the maximum of size and minCapacity.
Creates a MutableFloatList with the specified size, where each element is calculated by calling the specified init function. init is called for each list element sequentially starting from the first one. It should return the value for a list element given its index.
The initial capacity of the list.
Function that takes an index and returns the element to be placed at that index.
Creates a MutableFloatList with the specified size, where each element is calculated by calling the specified init function. init is called for each list element sequentially starting from the first one. It should return the value for a list element given its index.
The initial capacity of the list.
Function that takes an index and returns the element to be placed at that index.
Creates a MutableFloatList with a capacity of initialCapacity.
Creates a MutableFloatList with a capacity of initialCapacity.
Adds all elements to the MutableFloatList at the given index, shifting over any elements at index and after, if any.
true if the MutableFloatList was changed or false if elements was empty
if index isn't between 0 and size, inclusive.
Adds all elements to the MutableFloatList at the given index, shifting over any elements at index and after, if any.
true if the MutableFloatList was changed or false if elements was empty
if index isn't between 0 and size, inclusive
Adds all elements to the end of the MutableFloatList and returns true if the MutableFloatList was changed or false if elements was empty.
Adds all elements to the MutableFloatList at the given index, shifting over any elements at index and after, if any.
true if the MutableFloatList was changed or false if elements was empty
if index isn't between 0 and size, inclusive.
Adds all elements to the MutableFloatList at the given index, shifting over any elements at index and after, if any.
true if the MutableFloatList was changed or false if elements was empty
if index isn't between 0 and size, inclusive
Adds all elements to the end of the MutableFloatList and returns true if the MutableFloatList was changed or false if elements was empty.
Adds element to the MutableFloatList and returns true.
Adds element to the MutableFloatList at the given index, shifting over any elements at index and after, if any.
if index isn't between 0 and size, inclusive
Adds element to the MutableFloatList and returns true.
Adds element to the MutableFloatList at the given index, shifting over any elements at index and after, if any.
if index isn't between 0 and size, inclusive
Returns the total number of elements that can be held before the MutableFloatList must grow.
Returns the total number of elements that can be held before the MutableFloatList must grow.
Removes all elements in the MutableFloatList. The storage isn't released.
Removes all elements in the MutableFloatList. The storage isn't released.
Ensures that there is enough space to store capacity elements in the MutableFloatList.
Ensures that there is enough space to store capacity elements in the MutableFloatList.
MutableFloatList is a MutableList-like collection for Float values. It allows storing and retrieving the elements without boxing. Immutable access is available through its base class FloatList, which has a List-like interface.
This implementation is not thread-safe: if multiple threads access this container concurrently, and one or more threads modify the structure of the list (insertion or removal for instance), the calling code must provide the appropriate synchronization. It is also not safe to mutate during reentrancy -- in the middle of a forEach, for example. However, concurrent reads are safe.
MutableFloatList is a MutableList-like collection for Float values. It allows storing and retrieving the elements without boxing. Immutable access is available through its base class FloatList, which has a List-like interface.
This implementation is not thread-safe: if multiple threads access this container concurrently, and one or more threads modify the structure of the list (insertion or removal for instance), the calling code must provide the appropriate synchronization. It is also not safe to mutate during reentrancy -- in the middle of a forEach, for example. However, concurrent reads are safe.
Adds all elements to the end of the MutableFloatList and returns true if the MutableFloatList was changed or false if elements was empty.
Adds all elements to the MutableFloatList at the given index, shifting over any elements at index and after, if any.
Adds all elements to the end of the MutableFloatList and returns true if the MutableFloatList was changed or false if elements was empty.
Adds all elements to the MutableFloatList at the given index, shifting over any elements at index and after, if any.
Returns the element at the given index or defaultValue if index is out of bounds of the collection.
Returns the element at the given index or defaultValue if index is out of bounds of the collection.
Returns a list of windows with the given windowSize sliding with the given step. Each window is a view into the original list. Changes in the original list will be reflected in the windows.
Returns a WindowedFloatList with the given windowSize sliding by step. Each window is a view into the original list.
Removes all elements from the MutableFloatList and returns true if anything was removed.
Removes all elements from the MutableFloatList and returns true if anything was removed.
Removes element from the MutableFloatList. If element was in the MutableFloatList and was removed, true will be returned, or false will be returned if the element was not found.
Removes element from the MutableFloatList. If element was in the MutableFloatList and was removed, true will be returned, or false will be returned if the element was not found.
Keeps only elements in the MutableFloatList and removes all other values.
true if the MutableFloatList has changed.
Keeps only elements in the MutableFloatList and removes all other values.
true if the MutableFloatList has changed.
Sorts the MutableFloatList elements in descending order.
Sorts the MutableFloatList elements in descending order.
Sorts the MutableFloatList elements in ascending order.
Sorts the MutableFloatList elements in ascending order.
Reduces the internal storage. If capacity is greater than minCapacity and size, the internal storage is reduced to the maximum of size and minCapacity.
Reduces the internal storage. If capacity is greater than minCapacity and size, the internal storage is reduced to the maximum of size and minCapacity.
Creates a MutableIntList with the specified size, where each element is calculated by calling the specified init function. init is called for each list element sequentially starting from the first one. It should return the value for a list element given its index.
The initial capacity of the list.
Function that takes an index and returns the element to be placed at that index.
Creates a MutableIntList with the specified size, where each element is calculated by calling the specified init function. init is called for each list element sequentially starting from the first one. It should return the value for a list element given its index.
The initial capacity of the list.
Function that takes an index and returns the element to be placed at that index.
Creates a MutableIntList with a capacity of initialCapacity.
Creates a MutableIntList with a capacity of initialCapacity.
Adds all elements to the MutableIntList at the given index, shifting over any elements at index and after, if any.
true if the MutableIntList was changed or false if elements was empty
if index isn't between 0 and size, inclusive.
Adds all elements to the MutableIntList at the given index, shifting over any elements at index and after, if any.
true if the MutableIntList was changed or false if elements was empty
if index isn't between 0 and size, inclusive
Adds all elements to the end of the MutableIntList and returns true if the MutableIntList was changed or false if elements was empty.
Adds all elements to the MutableIntList at the given index, shifting over any elements at index and after, if any.
true if the MutableIntList was changed or false if elements was empty
if index isn't between 0 and size, inclusive.
Adds all elements to the MutableIntList at the given index, shifting over any elements at index and after, if any.
true if the MutableIntList was changed or false if elements was empty
if index isn't between 0 and size, inclusive
Adds all elements to the end of the MutableIntList and returns true if the MutableIntList was changed or false if elements was empty.
Adds element to the MutableIntList and returns true.
Adds element to the MutableIntList at the given index, shifting over any elements at index and after, if any.
if index isn't between 0 and size, inclusive
Adds element to the MutableIntList and returns true.
Adds element to the MutableIntList at the given index, shifting over any elements at index and after, if any.
if index isn't between 0 and size, inclusive
Returns the total number of elements that can be held before the MutableIntList must grow.
Returns the total number of elements that can be held before the MutableIntList must grow.
Removes all elements in the MutableIntList. The storage isn't released.
Removes all elements in the MutableIntList. The storage isn't released.
Ensures that there is enough space to store capacity elements in the MutableIntList.
Ensures that there is enough space to store capacity elements in the MutableIntList.
MutableIntList is a MutableList-like collection for Int values. It allows storing and retrieving the elements without boxing. Immutable access is available through its base class IntList, which has a List-like interface.
This implementation is not thread-safe: if multiple threads access this container concurrently, and one or more threads modify the structure of the list (insertion or removal for instance), the calling code must provide the appropriate synchronization. It is also not safe to mutate during reentrancy -- in the middle of a forEach, for example. However, concurrent reads are safe.
MutableIntList is a MutableList-like collection for Int values. It allows storing and retrieving the elements without boxing. Immutable access is available through its base class IntList, which has a List-like interface.
This implementation is not thread-safe: if multiple threads access this container concurrently, and one or more threads modify the structure of the list (insertion or removal for instance), the calling code must provide the appropriate synchronization. It is also not safe to mutate during reentrancy -- in the middle of a forEach, for example. However, concurrent reads are safe.
Adds all elements to the end of the MutableIntList and returns true if the MutableIntList was changed or false if elements was empty.
Adds all elements to the MutableIntList at the given index, shifting over any elements at index and after, if any.
Adds all elements to the end of the MutableIntList and returns true if the MutableIntList was changed or false if elements was empty.
Adds all elements to the MutableIntList at the given index, shifting over any elements at index and after, if any.
Returns the element at the given index or defaultValue if index is out of bounds of the collection.
Returns the element at the given index or defaultValue if index is out of bounds of the collection.
Returns a list of windows with the given windowSize sliding with the given step. Each window is a view into the original list. Changes in the original list will be reflected in the windows.
Returns a WindowedIntList with the given windowSize sliding by step. Each window is a view into the original list.
Removes element from the MutableIntList. If element was in the MutableIntList and was removed, true will be returned, or false will be returned if the element was not found.
Removes element from the MutableIntList. If element was in the MutableIntList and was removed, true will be returned, or false will be returned if the element was not found.
Sorts the MutableIntList elements in descending order.
Sorts the MutableIntList elements in descending order.
Sorts the MutableIntList elements in ascending order.
Sorts the MutableIntList elements in ascending order.
Reduces the internal storage. If capacity is greater than minCapacity and size, the internal storage is reduced to the maximum of size and minCapacity.
Reduces the internal storage. If capacity is greater than minCapacity and size, the internal storage is reduced to the maximum of size and minCapacity.
Creates a MutableLongList with the specified size, where each element is calculated by calling the specified init function. init is called for each list element sequentially starting from the first one. It should return the value for a list element given its index.
The initial capacity of the list.
Function that takes an index and returns the element to be placed at that index.
Creates a MutableLongList with the specified size, where each element is calculated by calling the specified init function. init is called for each list element sequentially starting from the first one. It should return the value for a list element given its index.
The initial capacity of the list.
Function that takes an index and returns the element to be placed at that index.
Creates a MutableLongList with a capacity of initialCapacity.
Creates a MutableLongList with a capacity of initialCapacity.
Adds all elements to the MutableLongList at the given index, shifting over any elements at index and after, if any.
true if the MutableLongList was changed or false if elements was empty
if index isn't between 0 and size, inclusive.
Adds all elements to the MutableLongList at the given index, shifting over any elements at index and after, if any.
true if the MutableLongList was changed or false if elements was empty
if index isn't between 0 and size, inclusive
Adds all elements to the end of the MutableLongList and returns true if the MutableLongList was changed or false if elements was empty.
Adds all elements to the MutableLongList at the given index, shifting over any elements at index and after, if any.
true if the MutableLongList was changed or false if elements was empty
if index isn't between 0 and size, inclusive.
Adds all elements to the MutableLongList at the given index, shifting over any elements at index and after, if any.
true if the MutableLongList was changed or false if elements was empty
if index isn't between 0 and size, inclusive
Adds all elements to the end of the MutableLongList and returns true if the MutableLongList was changed or false if elements was empty.
Adds element to the MutableLongList and returns true.
Adds element to the MutableLongList at the given index, shifting over any elements at index and after, if any.
if index isn't between 0 and size, inclusive
Adds element to the MutableLongList and returns true.
Adds element to the MutableLongList at the given index, shifting over any elements at index and after, if any.
if index isn't between 0 and size, inclusive
Returns the total number of elements that can be held before the MutableLongList must grow.
Returns the total number of elements that can be held before the MutableLongList must grow.
Removes all elements in the MutableLongList. The storage isn't released.
Removes all elements in the MutableLongList. The storage isn't released.
Ensures that there is enough space to store capacity elements in the MutableLongList.
Ensures that there is enough space to store capacity elements in the MutableLongList.
MutableLongList is a MutableList-like collection for Long values. It allows storing and retrieving the elements without boxing. Immutable access is available through its base class LongList, which has a List-like interface.
This implementation is not thread-safe: if multiple threads access this container concurrently, and one or more threads modify the structure of the list (insertion or removal for instance), the calling code must provide the appropriate synchronization. It is also not safe to mutate during reentrancy -- in the middle of a forEach, for example. However, concurrent reads are safe.
MutableLongList is a MutableList-like collection for Long values. It allows storing and retrieving the elements without boxing. Immutable access is available through its base class LongList, which has a List-like interface.
This implementation is not thread-safe: if multiple threads access this container concurrently, and one or more threads modify the structure of the list (insertion or removal for instance), the calling code must provide the appropriate synchronization. It is also not safe to mutate during reentrancy -- in the middle of a forEach, for example. However, concurrent reads are safe.
Adds all elements to the end of the MutableLongList and returns true if the MutableLongList was changed or false if elements was empty.
Adds all elements to the MutableLongList at the given index, shifting over any elements at index and after, if any.
Adds all elements to the end of the MutableLongList and returns true if the MutableLongList was changed or false if elements was empty.
Adds all elements to the MutableLongList at the given index, shifting over any elements at index and after, if any.
Returns the element at the given index or defaultValue if index is out of bounds of the collection.
Returns the element at the given index or defaultValue if index is out of bounds of the collection.
Returns a list of windows with the given windowSize sliding with the given step. Each window is a view into the original list. Changes in the original list will be reflected in the windows.
Returns a WindowedLongList with the given windowSize sliding by step. Each window is a view into the original list.
Removes element from the MutableLongList. If element was in the MutableLongList and was removed, true will be returned, or false will be returned if the element was not found.
Removes element from the MutableLongList. If element was in the MutableLongList and was removed, true will be returned, or false will be returned if the element was not found.
Sorts the MutableLongList elements in descending order.
Sorts the MutableLongList elements in descending order.
Sorts the MutableLongList elements in ascending order.
Sorts the MutableLongList elements in ascending order.
Reduces the internal storage. If capacity is greater than minCapacity and size, the internal storage is reduced to the maximum of size and minCapacity.
Reduces the internal storage. If capacity is greater than minCapacity and size, the internal storage is reduced to the maximum of size and minCapacity.
Builds a new DoubleList by populating a MutableDoubleList using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
Lambda in which the MutableDoubleList can be populated.
Builds a new DoubleList by populating a MutableDoubleList using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
Hint for the expected number of elements added in the builderAction.
Lambda in which the MutableDoubleList can be populated.
Builds a new DoubleList by populating a MutableDoubleList using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
Lambda in which the MutableDoubleList can be populated.
Builds a new DoubleList by populating a MutableDoubleList using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
Hint for the expected number of elements added in the builderAction.
Lambda in which the MutableDoubleList can be populated.
Builds a new FloatList by populating a MutableFloatList using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
Lambda in which the MutableFloatList can be populated.
Builds a new FloatList by populating a MutableFloatList using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
Hint for the expected number of elements added in the builderAction.
Lambda in which the MutableFloatList can be populated.
Builds a new FloatList by populating a MutableFloatList using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
Lambda in which the MutableFloatList can be populated.
Builds a new FloatList by populating a MutableFloatList using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
Hint for the expected number of elements added in the builderAction.
Lambda in which the MutableFloatList can be populated.
Builds a new IntList by populating a MutableIntList using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
Lambda in which the MutableIntList can be populated.
Builds a new IntList by populating a MutableIntList using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
Hint for the expected number of elements added in the builderAction.
Lambda in which the MutableIntList can be populated.
Builds a new IntList by populating a MutableIntList using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
Lambda in which the MutableIntList can be populated.
Builds a new IntList by populating a MutableIntList using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
Hint for the expected number of elements added in the builderAction.
Lambda in which the MutableIntList can be populated.
Builds a new LongList by populating a MutableLongList using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
Lambda in which the MutableLongList can be populated.
Builds a new LongList by populating a MutableLongList using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
Hint for the expected number of elements added in the builderAction.
Lambda in which the MutableLongList can be populated.
Builds a new LongList by populating a MutableLongList using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
Lambda in which the MutableLongList can be populated.
Builds a new LongList by populating a MutableLongList using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
Hint for the expected number of elements added in the builderAction.
Lambda in which the MutableLongList can be populated.
a read-only DoubleList with nothing in it.
a new read-only DoubleList with element1 as the only item in the list.
a new read-only DoubleList with 2 elements, element1 and element2, in order.
a new read-only DoubleList with 3 elements, element1, element2, and element3, in order.
a new read-only DoubleList with elements in order.
a read-only DoubleList with nothing in it.
a new read-only DoubleList with element1 as the only item in the list.
a new read-only DoubleList with 2 elements, element1 and element2, in order.
a new read-only DoubleList with 3 elements, element1, element2, and element3, in order.
a new read-only DoubleList with elements in order.
a read-only DoubleList with nothing in it.
a read-only DoubleList with nothing in it.
a read-only FloatList with nothing in it.
a new read-only FloatList with element1 as the only item in the list.
a new read-only FloatList with 2 elements, element1 and element2, in order.
a new read-only FloatList with 3 elements, element1, element2, and element3, in order.
a read-only FloatList with nothing in it.
a new read-only FloatList with element1 as the only item in the list.
a new read-only FloatList with 2 elements, element1 and element2, in order.
a new read-only FloatList with 3 elements, element1, element2, and element3, in order.
a new empty MutableDoubleList with the default capacity.
a new MutableDoubleList with element1 as the only item in the list.
a new MutableDoubleList with 2 elements, element1 and element2, in order.
a new MutableDoubleList with 3 elements, element1, element2, and element3, in order.
a new MutableDoubleList with the given elements, in order.
a new empty MutableDoubleList with the default capacity.
a new MutableDoubleList with element1 as the only item in the list.
a new MutableDoubleList with 2 elements, element1 and element2, in order.
a new MutableDoubleList with 3 elements, element1, element2, and element3, in order.
a new MutableDoubleList with the given elements, in order.
a new empty MutableFloatList with the default capacity.
a new MutableFloatList with element1 as the only item in the list.
a new MutableFloatList with 2 elements, element1 and element2, in order.
a new MutableFloatList with 3 elements, element1, element2, and element3, in order.
a new MutableFloatList with the given elements, in order.
a new empty MutableFloatList with the default capacity.
a new MutableFloatList with element1 as the only item in the list.
a new MutableFloatList with 2 elements, element1 and element2, in order.
a new MutableFloatList with 3 elements, element1, element2, and element3, in order.
a new MutableFloatList with the given elements, in order.
a new empty MutableIntList with the default capacity.
a new MutableIntList with element1 as the only item in the list.
a new MutableIntList with 2 elements, element1 and element2, in order.
a new MutableIntList with 3 elements, element1, element2, and element3, in order.
a new MutableIntList with the given elements, in order.
a new empty MutableIntList with the default capacity.
a new MutableIntList with element1 as the only item in the list.
a new MutableIntList with 2 elements, element1 and element2, in order.
a new MutableIntList with 3 elements, element1, element2, and element3, in order.
a new MutableIntList with the given elements, in order.
a new empty MutableLongList with the default capacity.
a new MutableLongList with element1 as the only item in the list.
a new MutableLongList with 2 elements, element1 and element2, in order.
a new MutableLongList with 3 elements, element1, element2, and element3, in order.
a new MutableLongList with the given elements, in order.
a new empty MutableLongList with the default capacity.
a new MutableLongList with element1 as the only item in the list.
a new MutableLongList with 2 elements, element1 and element2, in order.
a new MutableLongList with 3 elements, element1, element2, and element3, in order.
a new MutableLongList with the given elements, in order.
Returns the DoubleList itself if it's not null; otherwise returns an empty DoubleList.
Returns the FloatList itself if it's not null; otherwise returns an empty FloatList.
Returns the IntList itself if it's not null; otherwise returns an empty IntList.
Returns the LongList itself if it's not null; otherwise returns an empty LongList.
Returns the DoubleList itself if it's not null; otherwise returns an empty DoubleList.
Returns the FloatList itself if it's not null; otherwise returns an empty FloatList.
Returns the IntList itself if it's not null; otherwise returns an empty IntList.
Returns the LongList itself if it's not null; otherwise returns an empty LongList.