Skip to main content
Version: Java (Groovy)

booleanCol

The booleanCol method creates a column containing Java primitive boolean values.

note

This method is commonly used with newTable to create tables.

Syntax

booleanCol(name, data...)

Parameters

ParameterTypeDescription
nameString

The name of the new column.

databoolean...

The column values.

Returns

A ColumnHolder.

Example

The following examples use newTable to create a table with a single column of booleans named Booleans.

result = newTable(
booleanCol("Booleans", true, false, false, true)
)