
## CellsDataTableFactory class

Utility to build ICellsDataTable from custom objects for user's convenience.

## Methods

| Name | Description |
| --- | --- |
| [getInstance(vals, columnNames)](#getinstance) | Creates ICellsDataTable from given sequence of int values. |
| [getInstance(vals, vertial)](#getinstance-1) | Creates ICellsDataTable from given sequence of int values. |
| [getInstance(vals, columnNames)](#getinstance-2) | Creates ICellsDataTable from given sequence of double values. |
| [getInstance(vals, vertial)](#getinstance-3) | Creates ICellsDataTable from given sequence of double values. |
| [getInstance(vals, columnNames)](#getinstance-4) | Creates ICellsDataTable from given sequence of objects. |
| [getInstance()](#getinstance-5) |  |
| [getInstance(vals, vertial)](#getinstance-6) | Creates ICellsDataTable from given sequence of objects. |
| [getInstance(vals)](#getinstance-7) | Creates ICellsDataTable from given 2D array. |
| [getInstance(vals)](#getinstance-8) | Creates ICellsDataTable from given 2D array. |
| [getInstance(vals)](#getinstance-9) | Creates ICellsDataTable from given 2D array. |
| [getInstance(collection)](#getinstance-10) | Creates ICellsDataTable from given collection. |
| [getInstance()](#getinstance-11) |  |

### getInstance(vals, columnNames) {#getinstance}

Creates ICellsDataTable from given sequence of int values.

| Parameter | Type | Description |
| --- | --- | --- |
| vals | Array of Number | int values to build table |
| columnNames | Array of String | Column names of the table. Its length can only be either 1(build table by the int values vertically) or length of the int values(build table by the int values horizontally) |

**Returns:** ICellsDataTable — `ICellsDataTable` Instance of ICellsDataTable

### getInstance(vals, vertial) {#getinstance-1}

Creates ICellsDataTable from given sequence of int values.

| Parameter | Type | Description |
| --- | --- | --- |
| vals | Array of Number | int values to build table |
| vertial | boolean | whether build table by the int values vertiacally(true) or horizontally(false) |

**Returns:** ICellsDataTable — `ICellsDataTable` Instance of ICellsDataTable

### getInstance(vals, columnNames) {#getinstance-2}

Creates ICellsDataTable from given sequence of double values.

| Parameter | Type | Description |
| --- | --- | --- |
| vals | Array of Number | double values to build table |
| columnNames | Array of String | Column names of the table. Its length can only be either 1(build table by the double values vertically) or length of the double values(build table by the double values horizontally) |

**Returns:** ICellsDataTable — `ICellsDataTable` Instance of ICellsDataTable

### getInstance(vals, vertial) {#getinstance-3}

Creates ICellsDataTable from given sequence of double values.

| Parameter | Type | Description |
| --- | --- | --- |
| vals | Array of Number | double values to build table |
| vertial | boolean | whether build table by the double values vertiacally(true) or horizontally(false) |

**Returns:** ICellsDataTable — `ICellsDataTable` Instance of ICellsDataTable

### getInstance(vals, columnNames) {#getinstance-4}

Creates ICellsDataTable from given sequence of objects.

| Parameter | Type | Description |
| --- | --- | --- |
| vals | Array of Object | objects to build table |
| columnNames | Array of String | Column names of the table. Its length can only be either 1(build table by the objects vertically) or length of the objects(build table by the objects horizontally) |

**Returns:** ICellsDataTable — `ICellsDataTable` Instance of ICellsDataTable

### getInstance() {#getinstance-5}

### getInstance(vals, vertial) {#getinstance-6}

Creates ICellsDataTable from given sequence of objects.

| Parameter | Type | Description |
| --- | --- | --- |
| vals | Array of Object | objects to build table |
| vertial | boolean | whether build table by the objects vertiacally(true) or horizontally(false) |

**Returns:** ICellsDataTable — `ICellsDataTable` Instance of ICellsDataTable

### getInstance(vals) {#getinstance-7}

Creates ICellsDataTable from given 2D array.

| Parameter | Type | Description |
| --- | --- | --- |
| vals | Array of Array of int | int values to build table |

**Returns:** ICellsDataTable — `ICellsDataTable` Instance of ICellsDataTable

### getInstance(vals) {#getinstance-8}

Creates ICellsDataTable from given 2D array.

| Parameter | Type | Description |
| --- | --- | --- |
| vals | Array of Array of double | double values to build table |

**Returns:** ICellsDataTable — `ICellsDataTable` Instance of ICellsDataTable

### getInstance(vals) {#getinstance-9}

Creates ICellsDataTable from given 2D array.

| Parameter | Type | Description |
| --- | --- | --- |
| vals | Array of Array of Object | objects to build table |

**Returns:** ICellsDataTable — `ICellsDataTable` Instance of ICellsDataTable

### getInstance(collection) {#getinstance-10}

Creates ICellsDataTable from given collection.

| Parameter | Type | Description |
| --- | --- | --- |
| collection | Collection | the collection to build table |

**Returns:** ICellsDataTable — `ICellsDataTable` Instance of ICellsDataTable

### getInstance() {#getinstance-11}
