public class DataTypeConversion
extends java.lang.Object
Constructor and Description |
---|
DataTypeConversion() |
Modifier and Type | Method and Description |
---|---|
static DataType |
determineDataType(java.lang.Class<?> type)
Determines the data type based on the system type.
|
static DataType |
determineDataType(java.lang.String type)
Determines the data type based on the system type.
|
static boolean[] |
getAsBooleanArray(java.util.List<Item> items)
|
static boolean[] |
getAsBooleanArray(java.util.List<Item> items,
boolean maskNA)
|
static java.lang.Boolean[] |
getAsBooleanObjectArray(java.util.List<Item> items)
|
static double[] |
getAsDoubleArray(java.util.List<Item> items)
|
static double[] |
getAsDoubleArray(java.util.List<Item> items,
double maskNA)
|
static java.lang.Double[] |
getAsDoubleObjectArray(java.util.List<Item> items)
|
static int[] |
getAsIntegerArray(java.util.List<Item> items)
|
static int[] |
getAsIntegerArray(java.util.List<Item> items,
int maskNA)
|
static java.lang.Integer[] |
getAsIntegerObjectArray(java.util.List<Item> items)
Helper method to transform a vector into an Integer Object array.
|
static java.lang.String[] |
getAsStringArray(java.util.List<Item> items)
|
public static java.lang.String[] getAsStringArray(java.util.List<Item> items) throws java.lang.IllegalArgumentException
public static int[] getAsIntegerArray(java.util.List<Item> items) throws java.lang.NumberFormatException
public static int[] getAsIntegerArray(java.util.List<Item> items, int maskNA) throws java.lang.NumberFormatException
public static java.lang.Integer[] getAsIntegerObjectArray(java.util.List<Item> items) throws java.lang.NumberFormatException
public static boolean[] getAsBooleanArray(java.util.List<Item> items)
public static boolean[] getAsBooleanArray(java.util.List<Item> items, boolean maskNA)
public static java.lang.Boolean[] getAsBooleanObjectArray(java.util.List<Item> items) throws java.lang.IllegalArgumentException
public static double[] getAsDoubleArray(java.util.List<Item> items) throws java.lang.NumberFormatException
public static double[] getAsDoubleArray(java.util.List<Item> items, double maskNA) throws java.lang.NumberFormatException
public static java.lang.Double[] getAsDoubleObjectArray(java.util.List<Item> items) throws java.lang.NumberFormatException
public static DataType determineDataType(java.lang.Class<?> type)
type
- The system type. Can be String, Integer, Double, or Boolean.java.lang.IllegalArgumentException
- if the type does not match a known type.public static DataType determineDataType(java.lang.String type)
type
- The array type.java.lang.IllegalArgumentException
- if the type does not match a known type.