col
The col method creates a column containing Java objects.
Note
This method is commonly used with newTable to create tables.
Caution
col is significantly slower than other methods that create columns. When creating a column with data of one type, use the corresponding specialized method (e.g. for ints, use intCol).
Syntax
col(name, data...)
Parameters
| Parameter | Type | Description |
|---|---|---|
| name | String | The name of the new column. |
| data | Java.lang.Object... | The column values. |
Returns
A ColumnHolder.
Example
The following examples use newTable to create a table with a single column of objects named Values.
result = newTable(
col("Values", "a", 1, -5.5)
)