Skip to main content
Version: Java (Groovy)

intCol

The intCol method creates a column containing Java primitive integer values.

note

This method is commonly used with newTable to create tables.

important

Integer columns do not support infinite and not-a-number (NaN) values.

Syntax

intCol(columnName, values...)

Parameters

ParameterTypeDescription
columnNameString

The name of the new column.

valuesint...

The column values.

Returns

A ColumnHolder.

Example

The following examples use newTable to create a table with a single column of integers named Integers.

result = newTable(
intCol("Integers", 1, 2, 3, 4, 5)
)