setNumeric

abstract fun setNumeric(colNum: Int, value: Double)
open fun setNumeric(colNum: Int, value: Boolean)

Parameters

colNum

the index into the row (0 based)

value

the value to set, will throw an exception if the cell is not NUMERIC


abstract fun setNumeric(data: DoubleArray): Int

Sets the numeric columns according to the data in the array. If the array has more elements than the number of columns, then the columns are filled with first elements of the array up to the number of columns. If the array has fewer elements than the number of columns, then only the first data.length columns are set.

Return

the number of columns that were set

Parameters

data

an array of data for the numeric rows. The array must not be null.


abstract fun setNumeric(columnName: String, value: Double)

Parameters

columnName

the name of the column to set

value

the value to set