toPrimitives

fun toPrimitives(array: Array<Double?>, replaceNull: Double = 0.0): DoubleArray

Converts any null values to replaceNull. For Array use toDoubleArray()

Return

the primitive array

Parameters

array

the array to copy

replaceNull

the value to replace any nulls


fun toPrimitives(doubleList: List<Double?>, replaceNull: Double = 0.0): DoubleArray

Converts any nulls to replaceNull. For List use toDoubleArray()

Return

the primitive array

Parameters

doubleList

the list to convert

replaceNull

the value to replace any nulls


fun toPrimitives(array: Array<Int?>, replaceNull: Int = 0): IntArray

Converts any null values to replaceNull, for Array use toIntArray()

Return

the primitive array

Parameters

array

the array to copy

replaceNull

the value to replace any nulls


fun toPrimitives(list: List<Int?>, replaceNull: Int = 0): IntArray

Converts any nulls to zero, for List use toIntArray()

Return

the primitive array

Parameters

list

the list to convert

replaceNull

the value to replace any nulls


fun toPrimitives(array: Array<Long?>, replaceNull: Long = 0): LongArray

Converts any null values to replaceNull, for Array use toLongArray()

Return

the primitive array

Parameters

array

the array to copy

replaceNull

the value to replace any nulls


fun toPrimitives(list: List<Long?>, replaceNull: Long = 0): LongArray

Converts any nulls to replaceNull

Return

the primitive array

Parameters

list

the list to convert

replaceNull

the value to replace any nulls