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.

info

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

Syntax

intCol(name, data...)

Parameters

ParameterTypeDescription
nameString

The name of the new column.

dataint...

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)
)