public class ModelFarmUtils extends Object
Modifier and Type | Method and Description |
---|---|
static double[][] |
array2Double(Object o)
Interpret a table cell value as a 2D double array.
|
static DBDateTime[] |
arrayDBDateTime(Object o)
Interpret a table cell value as a date time array.
|
static double[] |
arrayDouble(Object o)
Interpret a table cell value as a double array.
|
static float[] |
arrayFloat(Object o)
Interpret a table cell value as a float array.
|
static int[] |
arrayInt(Object o)
Interpret a table cell value as an int array.
|
static long[] |
arrayLong(Object o)
Interpret a table cell value as a long array.
|
static String[] |
arrayString(Object o)
Interpret a table cell value as a string array.
|
static void |
requireTable(String tableName,
Table t,
String[] colNames,
Class[] colTypes)
Require a table to have specified columns of specified types.
|
public static void requireTable(String tableName, Table t, String[] colNames, Class[] colTypes)
tableName
- table namet
- tablecolNames
- required column namescolTypes
- required column typespublic static String[] arrayString(Object o)
o
- table cell value.public static DBDateTime[] arrayDBDateTime(Object o)
o
- table cell value.public static float[] arrayFloat(Object o)
o
- table cell value.public static double[] arrayDouble(Object o)
o
- table cell value.public static int[] arrayInt(Object o)
o
- table cell value.public static long[] arrayLong(Object o)
o
- table cell value.public static double[][] array2Double(Object o)
o
- table cell value.