CellsDataTableFactory
Inheritance: java.lang.Object
public class CellsDataTableFactory
Utility to build ICellsDataTable from custom objects for user’s convenience.
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
arg0 | java.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:
Parameter | Type | Description |
---|---|---|
vals | double[] | double values to build table |
vertial | boolean | whether 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:
Parameter | Type | Description |
---|---|---|
vals | double[] | double values to build table |
columnNames | java.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:
Parameter | Type | Description |
---|---|---|
vals | double[][] | 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:
Parameter | Type | Description |
---|---|---|
vals | int[] | int values to build table |
vertial | boolean | whether 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:
Parameter | Type | Description |
---|---|---|
vals | int[] | int values to build table |
columnNames | java.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:
Parameter | Type | Description |
---|---|---|
vals | int[][] | 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:
Parameter | Type | Description |
---|---|---|
vals | java.lang.Object[] | objects to build table |
vertial | boolean | whether 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:
Parameter | Type | Description |
---|---|---|
vals | java.lang.Object[] | objects to build table |
columnNames | java.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:
Parameter | Type | Description |
---|---|---|
vals | java.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:
Parameter | Type | Description |
---|---|---|
collection | java.util.Collection | the 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:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |