CellsDataTableFactory

Inheritance: java.lang.Object

public class CellsDataTableFactory

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

Methods

MethodDescription
equals(Object arg0)
getClass()
getInstance(double[] vals, boolean vertial)Creates ICellsDataTable from given sequence of double values.
getInstance(double[] vals, String[] columnNames)Creates ICellsDataTable from given sequence of double values.
getInstance(double[][] vals)Creates ICellsDataTable from given 2D array.
getInstance(int[] vals, boolean vertial)Creates ICellsDataTable from given sequence of int values.
getInstance(int[] vals, String[] columnNames)Creates ICellsDataTable from given sequence of int values.
getInstance(int[][] vals)Creates ICellsDataTable from given 2D array.
getInstance(Object[] vals, boolean vertial)Creates ICellsDataTable from given sequence of objects.
getInstance(Object[] vals, String[] columnNames)Creates ICellsDataTable from given sequence of objects.
getInstance(Object[][] vals)Creates ICellsDataTable from given 2D array.
getInstance(Collection collection)Creates ICellsDataTable from given collection.
hashCode()
notify()
notifyAll()
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getInstance(double[] vals, boolean vertial)

public ICellsDataTable getInstance(double[] vals, boolean vertial)

Creates ICellsDataTable from given sequence of double values.

Parameters:

ParameterTypeDescription
valsdouble[]double values to build table
vertialbooleanwhether build table by the double values vertiacally(true) or horizontally(false)

Returns: ICellsDataTable - Instance of ICellsDataTable

getInstance(double[] vals, String[] columnNames)

public ICellsDataTable getInstance(double[] vals, String[] columnNames)

Creates ICellsDataTable from given sequence of double values.

Parameters:

ParameterTypeDescription
valsdouble[]double values to build table
columnNamesjava.lang.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 - Instance of ICellsDataTable

getInstance(double[][] vals)

public ICellsDataTable getInstance(double[][] vals)

Creates ICellsDataTable from given 2D array.

Parameters:

ParameterTypeDescription
valsdouble[][]double values to build table

Returns: ICellsDataTable - Instance of ICellsDataTable

getInstance(int[] vals, boolean vertial)

public ICellsDataTable getInstance(int[] vals, boolean vertial)

Creates ICellsDataTable from given sequence of int values.

Parameters:

ParameterTypeDescription
valsint[]int values to build table
vertialbooleanwhether build table by the int values vertiacally(true) or horizontally(false)

Returns: ICellsDataTable - Instance of ICellsDataTable

getInstance(int[] vals, String[] columnNames)

public ICellsDataTable getInstance(int[] vals, String[] columnNames)

Creates ICellsDataTable from given sequence of int values.

Parameters:

ParameterTypeDescription
valsint[]int values to build table
columnNamesjava.lang.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 - Instance of ICellsDataTable

getInstance(int[][] vals)

public ICellsDataTable getInstance(int[][] vals)

Creates ICellsDataTable from given 2D array.

Parameters:

ParameterTypeDescription
valsint[][]int values to build table

Returns: ICellsDataTable - Instance of ICellsDataTable

getInstance(Object[] vals, boolean vertial)

public ICellsDataTable getInstance(Object[] vals, boolean vertial)

Creates ICellsDataTable from given sequence of objects.

Parameters:

ParameterTypeDescription
valsjava.lang.Object[]objects to build table
vertialbooleanwhether build table by the objects vertiacally(true) or horizontally(false)

Returns: ICellsDataTable - Instance of ICellsDataTable

getInstance(Object[] vals, String[] columnNames)

public ICellsDataTable getInstance(Object[] vals, String[] columnNames)

Creates ICellsDataTable from given sequence of objects.

Parameters:

ParameterTypeDescription
valsjava.lang.Object[]objects to build table
columnNamesjava.lang.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 - Instance of ICellsDataTable

getInstance(Object[][] vals)

public ICellsDataTable getInstance(Object[][] vals)

Creates ICellsDataTable from given 2D array.

Parameters:

ParameterTypeDescription
valsjava.lang.Object[][]objects to build table

Returns: ICellsDataTable - Instance of ICellsDataTable

getInstance(Collection collection)

public ICellsDataTable getInstance(Collection collection)

Creates ICellsDataTable from given collection.

Parameters:

ParameterTypeDescription
collectionjava.util.Collectionthe collection to build table

Returns: ICellsDataTable - Instance of ICellsDataTable

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int