Package-level declarations
Types
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.
Serializer for DoubleList that handles serialization and deserialization of the list.
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.
Serializer for FloatList that handles serialization and deserialization of the list.
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.
Serializer for IntList that handles serialization and deserialization of the list.
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.
Serializer for LongList that handles serialization and deserialization of the list.
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.
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.
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.
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.
Functions
Builds a new DoubleList by populating a MutableDoubleList using the given builderAction.
Builds a new FloatList by populating a MutableFloatList using the given builderAction.
Builds a new IntList by populating a MutableIntList using the given builderAction.
Builds a new LongList by populating a MutableLongList using the given builderAction.
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.
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.
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.
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.
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.
Returns the DoubleList itself if it's not null; otherwise returns an empty DoubleList.