Package-level declarations

Types

Link copied to clipboard
@Serializable(with = DoubleListSerializer::class)
sealed class DoubleList

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.

Link copied to clipboard
object DoubleListSerializer : KSerializer<DoubleList>

Serializer for DoubleList that handles serialization and deserialization of the list.

Link copied to clipboard
@Serializable(with = FloatListSerializer::class)
sealed class FloatList

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.

Link copied to clipboard
object FloatListSerializer : KSerializer<FloatList>

Serializer for FloatList that handles serialization and deserialization of the list.

Link copied to clipboard
@Serializable(with = IntListSerializer::class)
sealed class IntList

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.

Link copied to clipboard
object IntListSerializer : KSerializer<IntList>

Serializer for IntList that handles serialization and deserialization of the list.

Link copied to clipboard
@Serializable(with = LongListSerializer::class)
sealed class LongList

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.

Link copied to clipboard
object LongListSerializer : KSerializer<LongList>

Serializer for LongList that handles serialization and deserialization of the list.

Link copied to clipboard
class MutableDoubleList(initialCapacity: Int = 16) : DoubleList

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.

Link copied to clipboard
class MutableFloatList(initialCapacity: Int = 16) : FloatList

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.

Link copied to clipboard
class MutableIntList(initialCapacity: Int = 16) : IntList

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.

Link copied to clipboard
class MutableLongList(initialCapacity: Int = 16) : LongList

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

Link copied to clipboard
inline fun buildDoubleList(builderAction: MutableDoubleList.() -> Unit): DoubleList
inline fun buildDoubleList(initialCapacity: Int, builderAction: MutableDoubleList.() -> Unit): DoubleList

Builds a new DoubleList by populating a MutableDoubleList using the given builderAction.

Link copied to clipboard
inline fun buildFloatList(builderAction: MutableFloatList.() -> Unit): FloatList
inline fun buildFloatList(initialCapacity: Int, builderAction: MutableFloatList.() -> Unit): FloatList

Builds a new FloatList by populating a MutableFloatList using the given builderAction.

Link copied to clipboard
inline fun buildIntList(builderAction: MutableIntList.() -> Unit): IntList
inline fun buildIntList(initialCapacity: Int, builderAction: MutableIntList.() -> Unit): IntList

Builds a new IntList by populating a MutableIntList using the given builderAction.

Link copied to clipboard
inline fun buildLongList(builderAction: MutableLongList.() -> Unit): LongList
inline fun buildLongList(initialCapacity: Int, builderAction: MutableLongList.() -> Unit): LongList

Builds a new LongList by populating a MutableLongList using the given builderAction.

Link copied to clipboard
inline fun DoubleList(size: Int, init: (index: Int) -> Double): DoubleList

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.

Link copied to clipboard
fun doubleListOf(vararg elements: Double): DoubleList
fun doubleListOf(element1: Double, element2: Double): DoubleList
fun doubleListOf(element1: Double, element2: Double, element3: Double): DoubleList
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun FloatList(size: Int, init: (index: Int) -> Float): FloatList

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.

Link copied to clipboard
fun floatListOf(element1: Float): FloatList
fun floatListOf(vararg elements: Float): FloatList
fun floatListOf(element1: Float, element2: Float): FloatList
fun floatListOf(element1: Float, element2: Float, element3: Float): FloatList
Link copied to clipboard
inline fun IntList(size: Int, init: (index: Int) -> Int): IntList

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.

Link copied to clipboard
fun intListOf(element1: Int): IntList
fun intListOf(vararg elements: Int): IntList
fun intListOf(element1: Int, element2: Int): IntList
fun intListOf(element1: Int, element2: Int, element3: Int): IntList
Link copied to clipboard
inline fun LongList(size: Int, init: (index: Int) -> Long): LongList

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.

Link copied to clipboard
fun longListOf(element1: Long): LongList
fun longListOf(vararg elements: Long): LongList
fun longListOf(element1: Long, element2: Long): LongList
fun longListOf(element1: Long, element2: Long, element3: Long): LongList
Link copied to clipboard
inline fun MutableDoubleList(size: Int, init: (index: Int) -> Double): MutableDoubleList

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.

Link copied to clipboard
Link copied to clipboard
inline fun MutableFloatList(size: Int, init: (index: Int) -> Float): MutableFloatList

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.

Link copied to clipboard
inline fun mutableFloatListOf(vararg elements: Float): MutableFloatList
fun mutableFloatListOf(element1: Float, element2: Float): MutableFloatList
fun mutableFloatListOf(element1: Float, element2: Float, element3: Float): MutableFloatList
Link copied to clipboard
inline fun MutableIntList(size: Int, init: (index: Int) -> Int): MutableIntList

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.

Link copied to clipboard
inline fun mutableIntListOf(vararg elements: Int): MutableIntList
fun mutableIntListOf(element1: Int, element2: Int): MutableIntList
fun mutableIntListOf(element1: Int, element2: Int, element3: Int): MutableIntList
Link copied to clipboard
inline fun MutableLongList(size: Int, init: (index: Int) -> Long): MutableLongList

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.

Link copied to clipboard
inline fun mutableLongListOf(vararg elements: Long): MutableLongList
fun mutableLongListOf(element1: Long, element2: Long): MutableLongList
fun mutableLongListOf(element1: Long, element2: Long, element3: Long): MutableLongList
Link copied to clipboard

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.