Skip to main content
Version: Java (Groovy)

shortCol

The shortCol method creates a column containing Java primitive short values.

note

This method is commonly used with newTable to create tables.

Syntax

shortCol(name, data...)

Parameters

ParameterTypeDescription
nameString

The name of the new column.

datashort...

The column values.

Returns

A ColumnHolder.

Example

The following examples use newTable to create a table with a single column of shorts named Shorts.

result = newTable(
shortCol("Shorts", (short)86, (short)78, (short)41, (short)54, (short)20)
)