setElements

abstract fun setElements(elements: Array<Any?>)
abstract fun setElements(elements: List<Any?>)

The row is filled with the elements. Numeric elements are saved in numeric columns in the order presented. Non-numeric elements are all converted to strings and stored in the order presented. Numeric elements are of types {Double, Long, Integer, Boolean, Float, Short, Byte}. Any other type is converted to text via toString().

The order and types of the elements must match the order and types associated with the columns.

Parameters

elements

the elements to add to the row. The number of elements must be equal to the number of columns


open fun setElements(data: TabularData)

The row is filled with the elements. Numeric elements are saved in numeric columns in the order presented. Non-numeric elements are all converted to strings and stored in the order presented. Numeric elements are of types {Double, Long, Integer, Boolean, Float, Short, Byte}. Any other type is converted to text via toString().

The order and types of the elements must match the order and types associated with the columns.

Parameters

data

the data to add to the row. The instance of TabularData must be consistent with the column names and data types representing a row in the tabular data file